An open-source cross-platform alternative to AirDrop
fix: bundle required DLLs files to avoid crash on app start (#1520)
Tien Do Namf98cc75d7d22
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 71c18375..aac023d1 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -315,6 +315,13 @@ jobs:working-directory: apprun: 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 filesworking-directory: apprun: Compress-Archive -Path build/windows/runner/Release/* -DestinationPath LocalSend.zipdiff --git a/.github/workflows/test_zip.yml b/.github/workflows/test_zip.ymlindex 6cdc166a..e68aeb33 100644--- a/.github/workflows/test_zip.yml+++ b/.github/workflows/test_zip.yml@@ -47,14 +47,21 @@ jobs:- name: Create empty settings.jsonworking-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 filesworking-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 zipuses: actions/upload-artifact@v4with:- name: windows-zip-result+ name: windows-zip-x86-64-resultpath: app/LocalSend.zipdiff --git a/app/assets/CHANGELOG.md b/app/assets/CHANGELOG.mdindex 071f7c33..9f30631e 100644--- a/app/assets/CHANGELOG.md+++ b/app/assets/CHANGELOG.md@@ -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)diff --git a/scripts/windows/x64/msvcp140.dll b/scripts/windows/x64/msvcp140.dllnew file mode 100644index 00000000..065c1909Binary files /dev/null and b/scripts/windows/x64/msvcp140.dll differdiff --git a/scripts/windows/x64/vcruntime140.dll b/scripts/windows/x64/vcruntime140.dllnew file mode 100644index 00000000..a0bd2656Binary files /dev/null and b/scripts/windows/x64/vcruntime140.dll differdiff --git a/scripts/windows/x64/vcruntime140_1.dll b/scripts/windows/x64/vcruntime140_1.dllnew file mode 100644index 00000000..00e0a9f7Binary files /dev/null and b/scripts/windows/x64/vcruntime140_1.dll differ