Skip to content

An open-source cross-platform alternative to AirDrop

test: fix zip build

Tien Do Namec8e4e0ba0da
diff --git a/.github/workflows/build_zip_test.yml b/.github/workflows/build_zip_test.yml
index 921cc2d5..21aa932a 100644
--- a/.github/workflows/build_zip_test.yml
+++ b/.github/workflows/build_zip_test.yml
@@ -38,14 +38,17 @@ jobs:
flutter-version: ${{ env.FLUTTER_VERSION }}
channel: "stable"
+ # Required by the CMake install step (app/windows/CMakeLists.txt installs localsend_msix_helper.msix)
+ - name: Build MSIX helper
+ run: '& ''C:\Program Files (x86)\Windows Kits\10\App Certification Kit\makeappx.exe'' pack /o /d support\build\msix /nv /p app\windows\localsend_msix_helper.msix'
+
- name: Dependencies
working-directory: app
run: flutter pub get
- # TODO: remove -v once the CI build failure is diagnosed
- name: Compile for Windows
working-directory: app
- run: flutter build windows -v
+ run: flutter build windows
- name: Create empty settings.json
working-directory: app
@@ -58,6 +61,13 @@ jobs:
Copy-Item ../support/build/windows/x64/vcruntime140.dll build/windows/x64/runner/Release/
Copy-Item ../support/build/windows/x64/vcruntime140_1.dll build/windows/x64/runner/Release/
+ # The MSIX helper only makes sense for the installer; portable users should not register an MSIX package
+ - name: Remove MSIX helper from portable bundle
+ working-directory: app
+ run: |
+ Remove-Item build/windows/x64/runner/Release/localsend_msix_helper.msix
+ Remove-Item build/windows/x64/runner/Release/install_msix_helper.ps1
+
# The SignPath artifact configuration expects "LocalSend-*-windows-x86-64.zip" containing "localsend_app.exe"
- name: Zip compiled files
working-directory: app
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index fd292f35..404c82dc 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -348,6 +348,10 @@ jobs:
flutter-version: ${{ env.FLUTTER_VERSION }}
channel: "stable"
+ # Required by the CMake install step (app/windows/CMakeLists.txt installs localsend_msix_helper.msix)
+ - name: Build MSIX helper
+ run: '& ''C:\Program Files (x86)\Windows Kits\10\App Certification Kit\makeappx.exe'' pack /o /d support\build\msix /nv /p app\windows\localsend_msix_helper.msix'
+
- name: Dependencies
working-directory: app
run: flutter pub get
@@ -367,6 +371,13 @@ jobs:
Copy-Item ../support/build/windows/x64/vcruntime140.dll build/windows/x64/runner/Release/
Copy-Item ../support/build/windows/x64/vcruntime140_1.dll build/windows/x64/runner/Release/
+ # The MSIX helper only makes sense for the installer; portable users should not register an MSIX package
+ - name: Remove MSIX helper from portable bundle
+ working-directory: app
+ run: |
+ Remove-Item build/windows/x64/runner/Release/localsend_msix_helper.msix
+ Remove-Item build/windows/x64/runner/Release/install_msix_helper.ps1
+
# The SignPath artifact configuration expects "LocalSend-*-windows-x86-64.zip" containing "localsend_app.exe"
- name: Zip compiled files
working-directory: app