Fix windows packaging
This commit is contained in:
22
.github/workflows/build.yml
vendored
22
.github/workflows/build.yml
vendored
@@ -192,27 +192,7 @@ jobs:
|
||||
if: matrix.platform == 'windows'
|
||||
run: |
|
||||
tree
|
||||
New-Item -ItemType Directory -Force -Name "out"
|
||||
New-Item -ItemType Directory -Force -Name "tmp_out"
|
||||
$EXT_ARRAY = "${{ matrix.targets }}" -split ","
|
||||
foreach ($EXT in $EXT_ARRAY) {
|
||||
# Find all files with this extension in the current directory, and copy them to "out" directory
|
||||
Get-ChildItem -Recurse -File -Filter "*setup.$EXT" | Copy-Item -Destination "out" -ErrorAction SilentlyContinue
|
||||
move out\*setup.$EXT tmp_out\setup.$EXT
|
||||
Get-ChildItem -Recurse -File -Filter "*.$EXT"
|
||||
}
|
||||
|
||||
xcopy /s /v '.\.github\help\mac-windows\' .\tmp_out\
|
||||
cd tmp_out
|
||||
Compress-Archive -Path .\* -DestinationPath ..\out\hiddify-${{ matrix.platform }}-x64-setup.zip
|
||||
cd ..
|
||||
|
||||
|
||||
mkdir HiddifyNext-portable
|
||||
xcopy /s /v D:\a\hiddify-next\hiddify-next\build\windows\x64\runner\Release\HiddifyNext.exe .\HiddifyNext-portable\
|
||||
xcopy /s /v '.\.github\help\mac-windows\' .\HiddifyNext-portable\
|
||||
cd HiddifyNext-portable
|
||||
Compress-Archive .\ ..\out\hiddify-${{ matrix.platform }}-x64-portable.zip
|
||||
.\scripts\package_windows.ps1
|
||||
|
||||
- name: Copy to out Android apk
|
||||
if: matrix.platform == 'android-apk'
|
||||
|
||||
Reference in New Issue
Block a user