Skip to content

Commit

Permalink
clients: always build zip for gui-binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
octobocto committed Jan 25, 2025
1 parent 38117fe commit 89e7b2c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,12 @@ jobs:
mv bitwindow-binaries-macOS/bitwindow-osx64.zip BitWindow-latest-x86_64-apple-darwin.zip || true
mv bitwindow-binaries-Linux/bitwindow-x86_64-linux-gnu.zip BitWindow-latest-x86_64-unknown-linux-gnu.zip || true
mv bitwindow-binaries-Windows/bitwindow-win64.msix BitWindow-latest-x86_64-pc-windows-msvc.msix || true
mv bitwindow-binaries-Windows/bitwindow-win64.zip BitWindow-latest-x86_64-pc-windows-msvc.zip || true
# Launcher
mv launcher-binaries-macOS/launcher-osx64.zip Launcher-latest-x86_64-apple-darwin.zip || true
mv launcher-binaries-Linux/launcher-x86_64-linux-gnu.zip Launcher-latest-x86_64-unknown-linux-gnu.zip || true
mv launcher-binaries-Windows/launcher-win64.msix Launcher-latest-x86_64-pc-windows-msvc.msix || true
mv launcher-binaries-Windows/launcher-win64.zip Launcher-latest-x86_64-pc-windows-msvc.zip || true
- name: Upload artifacts to releases.drivechain.info
uses: cross-the-world/ssh-scp-ssh-pipelines@latest
Expand Down
2 changes: 1 addition & 1 deletion clients/launcher/assets/chain_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"binary": {
"linux": "bitwindow",
"darwin": "bitwindow.app",
"win32": "bitwindow.msix"
"win32": "bitwindow.exe"
},
"network": {
"port": 8080
Expand Down
16 changes: 7 additions & 9 deletions clients/scripts/build-windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,13 @@ build_cmd="flutter build windows --dart-define-from-file=build-vars.env"
# Create MSIX with specific options for CI
msix_cmd="dart run msix:create --build-windows false --install-certificate false"

# Build first
powershell.exe -Command "& {$clean_cmd; $build_cmd; exit}"
# Build and create an MSIX
powershell.exe -Command "& {$clean_cmd; $build_cmd; $msix_cmd; exit}"

# Create MSIX
powershell.exe -Command "& {$msix_cmd; exit}"

# Create release directory and copy MSIX with fixed name
# Prepare the release directory with correct names
msix_name=$lower_app_name.msix
zip_name=$lower_app_name-win64.zip
mkdir -p release

# Copy MSIX to release directory and rename it consistently
msix_name=$lower_app_name-win64.msix
cp build/windows/x64/runner/Release/*.msix "release/$msix_name"
# Then zip everything from Release directory including the renamed MSIX
powershell.exe -Command "Compress-Archive -Force build\windows\x64\runner\Release\* release/$zip_name"

0 comments on commit 89e7b2c

Please sign in to comment.