mirror of
https://github.com/localsend/localsend.git
synced 2026-06-23 04:10:07 +00:00
fix: bundle required DLLs files to avoid crash on app start (#1520)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user