fix: build issues

This commit is contained in:
Tien Do Nam
2024-11-03 02:35:19 +01:00
parent 1c97db551b
commit 15fc9a891c
5 changed files with 11 additions and 11 deletions
+4 -4
View File
@@ -321,13 +321,13 @@ jobs:
- name: Add DLL files
working-directory: app
run: |
Copy-Item ../scripts/windows/x64/msvcp140.dll build/windows/runner/Release/
Copy-Item ../scripts/windows/x64/vcruntime140.dll build/windows/runner/Release/
Copy-Item ../scripts/windows/x64/vcruntime140_1.dll build/windows/runner/Release/
Copy-Item ../scripts/windows/x64/msvcp140.dll build/windows/x64/runner/Release/
Copy-Item ../scripts/windows/x64/vcruntime140.dll build/windows/x64/runner/Release/
Copy-Item ../scripts/windows/x64/vcruntime140_1.dll build/windows/x64/runner/Release/
- name: Zip compiled files
working-directory: app
run: Compress-Archive -Path build/windows/runner/Release/* -DestinationPath LocalSend.zip
run: Compress-Archive -Path build/windows/x64/runner/Release/* -DestinationPath LocalSend.zip
- name: Upload zip
uses: actions/upload-artifact@v4
+4 -4
View File
@@ -52,13 +52,13 @@ jobs:
- name: Add DLL files
working-directory: app
run: |
Copy-Item ../scripts/windows/x64/msvcp140.dll build/windows/runner/Release/
Copy-Item ../scripts/windows/x64/vcruntime140.dll build/windows/runner/Release/
Copy-Item ../scripts/windows/x64/vcruntime140_1.dll build/windows/runner/Release/
Copy-Item ../scripts/windows/x64/msvcp140.dll build/windows/x64/runner/Release/
Copy-Item ../scripts/windows/x64/vcruntime140.dll build/windows/x64/runner/Release/
Copy-Item ../scripts/windows/x64/vcruntime140_1.dll build/windows/x64/runner/Release/
- name: Zip compiled files
working-directory: app
run: Compress-Archive -Path build/windows/runner/Release/* -DestinationPath LocalSend.zip
run: Compress-Archive -Path build/windows/x64/runner/Release/* -DestinationPath LocalSend.zip
- name: Upload zip
uses: actions/upload-artifact@v4
+1 -1
View File
@@ -12,7 +12,7 @@ fvm flutter clean
fvm flutter pub get
fvm dart run msix:create --certificate-path ../secrets/windows-tienisto.pfx --certificate-password $CERTIFICATE_PASSWORD
Move-Item -Path build/windows/runner/Release/localsend_app.msix -Destination LocalSend-XXX-windows-x86-64.msix
Move-Item -Path build/windows/x64/runner/Release/localsend_app.msix -Destination LocalSend-XXX-windows-x86-64.msix
cd ..
+1 -1
View File
@@ -7,6 +7,6 @@ fvm flutter pub get
fvm flutter pub run build_runner build -d
fvm flutter pub run msix:create --store
Move-Item -Path build/windows/runner/Release/localsend_app.msix -Destination LocalSend-XXX-windows-x86-64-store.msix
Move-Item -Path build/windows/x64/runner/Release/localsend_app.msix -Destination LocalSend-XXX-windows-x86-64-store.msix
Write-Output 'Generated Windows msix!'
+1 -1
View File
@@ -8,7 +8,7 @@ fvm flutter clean
fvm flutter pub get
fvm flutter build windows
Compress-Archive -Path build/windows/runner/Release/* -DestinationPath LocalSend-XXX-windows-x86-64.zip
Compress-Archive -Path build/windows/x64/runner/Release/* -DestinationPath LocalSend-XXX-windows-x86-64.zip
cd ..