mirror of
https://github.com/netchx/netch.git
synced 2026-04-25 21:39:41 +08:00
Update scripts and fix build
This commit is contained in:
14
scripts/deps/base/netch-data.ps1
Normal file
14
scripts/deps/base/netch-data.ps1
Normal file
@@ -0,0 +1,14 @@
|
||||
$name="data.zip"
|
||||
$address="https://github.com/netchx/netch-data/archive/refs/heads/main.zip"
|
||||
|
||||
..\scripts\download.ps1 $name $address
|
||||
if (-Not $?) { exit $lastExitCode }
|
||||
|
||||
..\scripts\extract.ps1 $name "bin"
|
||||
if (-Not $?) { exit $lastExitCode }
|
||||
|
||||
Copy-Item -Recurse -Force .\netch-data-main\* .\bin
|
||||
|
||||
Remove-Item -Force $name
|
||||
Remove-Item -Recurse -Force netch-data-main
|
||||
exit 0
|
||||
14
scripts/deps/base/netch-i18n.ps1
Normal file
14
scripts/deps/base/netch-i18n.ps1
Normal file
@@ -0,0 +1,14 @@
|
||||
$name="i18n.zip"
|
||||
$address="https://github.com/netchx/netch-i18n/archive/refs/heads/main.zip"
|
||||
|
||||
..\scripts\download.ps1 $name $address
|
||||
if (-Not $?) { exit $lastExitCode }
|
||||
|
||||
..\scripts\extract.ps1 $name "i18n"
|
||||
if (-Not $?) { exit $lastExitCode }
|
||||
|
||||
Copy-Item -Recurse -Force .\netch-i18n-main\* .\i18n
|
||||
|
||||
Remove-Item -Force $name
|
||||
Remove-Item -Recurse -Force netch-i18n-main
|
||||
exit 0
|
||||
14
scripts/deps/base/netch-mode.ps1
Normal file
14
scripts/deps/base/netch-mode.ps1
Normal file
@@ -0,0 +1,14 @@
|
||||
$name="mode.zip"
|
||||
$address="https://github.com/netchx/netch-mode/archive/refs/heads/main.zip"
|
||||
|
||||
..\scripts\download.ps1 $name $address
|
||||
if (-Not $?) { exit $lastExitCode }
|
||||
|
||||
..\scripts\extract.ps1 $name "mode"
|
||||
if (-Not $?) { exit $lastExitCode }
|
||||
|
||||
Copy-Item -Recurse -Force .\netch-mode-main\* .\mode
|
||||
|
||||
Remove-Item -Force $name
|
||||
Remove-Item -Recurse -Force netch-mode-main
|
||||
exit 0
|
||||
Reference in New Issue
Block a user