@@ -57,7 +57,6 @@ foreach ($url in $UrlWitchCachePath.Keys) {
5757
5858# 给项目打包,使用 7-Zip 压缩 zip
5959Write-Host " Packing AdGuardHome..."
60- $7z = " C:\Program Files\7-Zip\7z.exe"
6160$OutputPathArm64 = " $CacheDir \AdGuardHomeForRoot_arm64.zip"
6261$OutputPathArmv7 = " $CacheDir \AdGuardHomeForRoot_armv7.zip"
6362if (Test-Path - Path $OutputPathArm64 ) {
@@ -71,25 +70,25 @@ if (Test-Path -Path $OutputPathArmv7) {
7170$ProjectRoot = " $PSScriptRoot \src"
7271
7372# pack arm64
74- & $ 7z a - tzip $OutputPathArm64 " $ProjectRoot \*.sh"
75- & $ 7z a - tzip $OutputPathArm64 " $ProjectRoot \settings.conf"
76- & $ 7z a - tzip $OutputPathArm64 " $ProjectRoot \module.prop"
77- & $ 7z a - tzip $OutputPathArm64 " $ProjectRoot \META-INF"
78- & $ 7z a - tzip $OutputPathArm64 " $ProjectRoot \scripts"
79- & $ 7z a - tzip $OutputPathArm64 " $ProjectRoot \webroot"
80- & $ 7z a - tzip $OutputPathArm64 " $ProjectRoot \bin\"
81- & $ 7z a - tzip $OutputPathArm64 " $CacheDir \arm64\AdGuardHome\AdGuardHome"
82- & $ 7z rn $OutputPathArm64 " AdGuardHome" " bin/AdGuardHome"
73+ 7z a - tzip $OutputPathArm64 " $ProjectRoot \*.sh"
74+ 7z a - tzip $OutputPathArm64 " $ProjectRoot \settings.conf"
75+ 7z a - tzip $OutputPathArm64 " $ProjectRoot \module.prop"
76+ 7z a - tzip $OutputPathArm64 " $ProjectRoot \META-INF"
77+ 7z a - tzip $OutputPathArm64 " $ProjectRoot \scripts"
78+ 7z a - tzip $OutputPathArm64 " $ProjectRoot \webroot"
79+ 7z a - tzip $OutputPathArm64 " $ProjectRoot \bin\"
80+ 7z a - tzip $OutputPathArm64 " $CacheDir \arm64\AdGuardHome\AdGuardHome"
81+ 7z rn $OutputPathArm64 " AdGuardHome" " bin/AdGuardHome"
8382
8483# pack armv7
85- & $ 7z a - tzip $OutputPathArmv7 " $ProjectRoot \*.sh"
86- & $ 7z a - tzip $OutputPathArmv7 " $ProjectRoot \settings.conf"
87- & $ 7z a - tzip $OutputPathArmv7 " $ProjectRoot \module.prop"
88- & $ 7z a - tzip $OutputPathArmv7 " $ProjectRoot \META-INF"
89- & $ 7z a - tzip $OutputPathArmv7 " $ProjectRoot \scripts"
90- & $ 7z a - tzip $OutputPathArmv7 " $ProjectRoot \webroot"
91- & $ 7z a - tzip $OutputPathArmv7 " $ProjectRoot \bin\"
92- & $ 7z a - tzip $OutputPathArmv7 " $CacheDir \armv7\AdGuardHome\AdGuardHome"
93- & $ 7z rn $OutputPathArmv7 " AdGuardHome" " bin/AdGuardHome"
84+ 7z a - tzip $OutputPathArmv7 " $ProjectRoot \*.sh"
85+ 7z a - tzip $OutputPathArmv7 " $ProjectRoot \settings.conf"
86+ 7z a - tzip $OutputPathArmv7 " $ProjectRoot \module.prop"
87+ 7z a - tzip $OutputPathArmv7 " $ProjectRoot \META-INF"
88+ 7z a - tzip $OutputPathArmv7 " $ProjectRoot \scripts"
89+ 7z a - tzip $OutputPathArmv7 " $ProjectRoot \webroot"
90+ 7z a - tzip $OutputPathArmv7 " $ProjectRoot \bin\"
91+ 7z a - tzip $OutputPathArmv7 " $CacheDir \armv7\AdGuardHome\AdGuardHome"
92+ 7z rn $OutputPathArmv7 " AdGuardHome" " bin/AdGuardHome"
9493
9594Write-Host " Packing completed successfully."
0 commit comments