Skip to content

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.yml
index 71c18375..aac023d1 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -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
diff --git a/.github/workflows/test_zip.yml b/.github/workflows/test_zip.yml
index 6cdc166a..e68aeb33 100644
--- a/.github/workflows/test_zip.yml
+++ b/.github/workflows/test_zip.yml
@@ -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
diff --git a/app/assets/CHANGELOG.md b/app/assets/CHANGELOG.md
index 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.dll
new file mode 100644
index 00000000..065c1909
Binary files /dev/null and b/scripts/windows/x64/msvcp140.dll differ
diff --git a/scripts/windows/x64/vcruntime140.dll b/scripts/windows/x64/vcruntime140.dll
new file mode 100644
index 00000000..a0bd2656
Binary files /dev/null and b/scripts/windows/x64/vcruntime140.dll differ
diff --git a/scripts/windows/x64/vcruntime140_1.dll b/scripts/windows/x64/vcruntime140_1.dll
new file mode 100644
index 00000000..00e0a9f7
Binary files /dev/null and b/scripts/windows/x64/vcruntime140_1.dll differ