fix: bundle required DLLs files to avoid crash on app start (#1520)

This commit is contained in:
Tien Do Nam
2024-07-17 02:11:47 +02:00
committed by GitHub
parent e9d0ae0bd0
commit f98cc75d7d
6 changed files with 18 additions and 3 deletions
+7
View File
@@ -315,6 +315,13 @@ jobs:
working-directory: app
run: echo {} > build/windows/runner/Release/settings.json
- 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/
- name: Zip compiled files
working-directory: app
run: Compress-Archive -Path build/windows/runner/Release/* -DestinationPath LocalSend.zip
+10 -3
View File
@@ -47,14 +47,21 @@ jobs:
- name: Create empty settings.json
working-directory: app
run: echo {} > build/windows/x64/runner/Release/settings.json
run: echo {} > build/windows/runner/Release/settings.json
- 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/
- name: Zip compiled files
working-directory: app
run: Compress-Archive -Path build/windows/x64/runner/Release/* -DestinationPath LocalSend.zip
run: Compress-Archive -Path build/windows/runner/Release/* -DestinationPath LocalSend.zip
- name: Upload zip
uses: actions/upload-artifact@v4
with:
name: windows-zip-result
name: windows-zip-x86-64-result
path: app/LocalSend.zip
+1
View File
@@ -1,6 +1,7 @@
## 1.15.1 (unreleased)
- fix(windows): crash when sum of file sizes greater than 2 GB (@Tienisto)
- fix(windows): bundle required DLLs files to avoid crash on app start (@Tienisto)
## 1.15.0 (2024-07-15)
Binary file not shown.
Binary file not shown.
Binary file not shown.