An open-source cross-platform alternative to AirDrop
refactor: move scripts/ to support/scripts/
Tien Do Nam747837ea9dfc
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex e8c64012..7e610c0d 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -90,7 +90,7 @@ jobs:- name: Extract version from Inno Setup configurationid: inno_versionrun: |- VERSION=$(grep '#define MyAppVersion ' scripts/compile_windows_exe-inno.iss | sed 's/#define MyAppVersion "//' | sed 's/"//')+ VERSION=$(grep '#define MyAppVersion ' support/scripts/compile_windows_exe-inno.iss | sed 's/#define MyAppVersion "//' | sed 's/"//')echo "Inno Setup version is $VERSION"echo "inno_version=$VERSION" >> $GITHUB_ENVdiff --git a/.github/workflows/compile_apk.yml b/.github/workflows/compile_apk.ymlindex ce1f213b..61ae0eb1 100644--- a/.github/workflows/compile_apk.yml+++ b/.github/workflows/compile_apk.yml@@ -32,7 +32,7 @@ jobs:uses: actions/checkout@v6- name: Remove proprietary dependencies- run: sh scripts/remove_proprietary_dependencies.sh+ run: sh support/scripts/remove_proprietary_dependencies.sh- name: Copy files to env.APK_BUILD_DIRrun: |diff --git a/.github/workflows/compile_arm64_appimage.yml b/.github/workflows/compile_arm64_appimage.ymlindex 2a5b3b92..13fc7e42 100644--- a/.github/workflows/compile_arm64_appimage.yml+++ b/.github/workflows/compile_arm64_appimage.yml@@ -58,7 +58,7 @@ jobs:cp app/assets/img/logo-256.png AppDir/usr/share/icons/hicolor/256x256/apps/localsend.png- name: Copy Recipe to correct location- run: cp scripts/appimage/AppImageBuilder_arm_64.yml AppImageBuilder.yml+ run: cp support/build/appimage/AppImageBuilder_arm_64.yml AppImageBuilder.yml- name: Build AppImageuses: AppImageCrafters/build-appimage@57c3bc6963f870ce3be103117de5b5e33ffbaeb6diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 0f973d4d..8c5014cf 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -32,7 +32,7 @@ jobs:uses: actions/checkout@v6- name: Remove proprietary dependencies- run: sh scripts/remove_proprietary_dependencies.sh+ run: sh support/scripts/remove_proprietary_dependencies.sh- name: Copy files to env.APK_BUILD_DIRrun: |@@ -318,7 +318,7 @@ jobs:cp app/assets/img/logo-256.png AppDir/usr/share/icons/hicolor/256x256/apps/localsend.png- name: Copy Recipe to correct location- run: cp scripts/appimage/AppImageBuilder_x86_64.yml AppImageBuilder.yml+ run: cp support/build/appimage/AppImageBuilder_x86_64.yml AppImageBuilder.yml- name: Build AppImageuses: AppImageCrafters/build-appimage@57c3bc6963f870ce3be103117de5b5e33ffbaeb6@@ -362,9 +362,9 @@ jobs:- name: Add DLL filesworking-directory: apprun: |- 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/+ Copy-Item ../support/build/windows/x64/msvcp140.dll build/windows/x64/runner/Release/+ Copy-Item ../support/build/windows/x64/vcruntime140.dll build/windows/x64/runner/Release/+ Copy-Item ../support/build/windows/x64/vcruntime140_1.dll build/windows/x64/runner/Release/- name: Zip compiled filesworking-directory: appdiff --git a/.github/workflows/test_zip.yml b/.github/workflows/test_zip.ymlindex 0a38fc38..3a8bb771 100644--- a/.github/workflows/test_zip.yml+++ b/.github/workflows/test_zip.yml@@ -52,9 +52,9 @@ jobs:- name: Add DLL filesworking-directory: apprun: |- 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/+ Copy-Item ../support/build/windows/x64/msvcp140.dll build/windows/x64/runner/Release/+ Copy-Item ../support/build/windows/x64/vcruntime140.dll build/windows/x64/runner/Release/+ Copy-Item ../support/build/windows/x64/vcruntime140_1.dll build/windows/x64/runner/Release/- name: Zip compiled filesworking-directory: appdiff --git a/scripts/appimage/AppImageBuilder_arm_64.yml b/support/build/appimage/AppImageBuilder_arm_64.ymlsimilarity index 100%rename from scripts/appimage/AppImageBuilder_arm_64.ymlrename to support/build/appimage/AppImageBuilder_arm_64.ymldiff --git a/scripts/appimage/AppImageBuilder_x86_64.yml b/support/build/appimage/AppImageBuilder_x86_64.ymlsimilarity index 100%rename from scripts/appimage/AppImageBuilder_x86_64.ymlrename to support/build/appimage/AppImageBuilder_x86_64.ymldiff --git a/scripts/dmg/background.png b/support/build/dmg/background.pngsimilarity index 100%rename from scripts/dmg/background.pngrename to support/build/dmg/background.pngdiff --git a/scripts/Languages/ChineseSimplified.isl b/support/build/windows/inno/ChineseSimplified.islsimilarity index 100%rename from scripts/Languages/ChineseSimplified.islrename to support/build/windows/inno/ChineseSimplified.isldiff --git a/scripts/windows/x64/msvcp140.dll b/support/build/windows/x64/msvcp140.dllsimilarity index 100%rename from scripts/windows/x64/msvcp140.dllrename to support/build/windows/x64/msvcp140.dlldiff --git a/scripts/windows/x64/vcruntime140.dll b/support/build/windows/x64/vcruntime140.dllsimilarity index 100%rename from scripts/windows/x64/vcruntime140.dllrename to support/build/windows/x64/vcruntime140.dlldiff --git a/scripts/windows/x64/vcruntime140_1.dll b/support/build/windows/x64/vcruntime140_1.dllsimilarity index 100%rename from scripts/windows/x64/vcruntime140_1.dllrename to support/build/windows/x64/vcruntime140_1.dlldiff --git a/scripts/compile_android_apk.sh b/support/scripts/compile_android_apk.shsimilarity index 100%rename from scripts/compile_android_apk.shrename to support/scripts/compile_android_apk.shdiff --git a/scripts/compile_android_appbundle.ps1 b/support/scripts/compile_android_appbundle.ps1similarity index 100%rename from scripts/compile_android_appbundle.ps1rename to support/scripts/compile_android_appbundle.ps1diff --git a/scripts/compile_ios.sh b/support/scripts/compile_ios.shsimilarity index 100%rename from scripts/compile_ios.shrename to support/scripts/compile_ios.shdiff --git a/scripts/compile_linux_appimage.sh b/support/scripts/compile_linux_appimage.shsimilarity index 100%rename from scripts/compile_linux_appimage.shrename to support/scripts/compile_linux_appimage.shdiff --git a/scripts/compile_mac_appstore.sh b/support/scripts/compile_mac_appstore.shsimilarity index 100%rename from scripts/compile_mac_appstore.shrename to support/scripts/compile_mac_appstore.shdiff --git a/scripts/compile_mac_dmg.sh b/support/scripts/compile_mac_dmg.shsimilarity index 95%rename from scripts/compile_mac_dmg.shrename to support/scripts/compile_mac_dmg.shindex 113dc1ce..7c18371e 100644--- a/scripts/compile_mac_dmg.sh+++ b/support/scripts/compile_mac_dmg.sh@@ -23,7 +23,7 @@ rm -f LocalSend.dmgcreate-dmg \--volname "LocalSend" \--window-size 500 300 \- --background "../scripts/dmg/background.png" \+ --background "../support/build/dmg/background.png" \--icon LocalSend.app 130 110 \--app-drop-link 360 110 \LocalSend.dmg \diff --git a/scripts/compile_windows_exe-inno.iss b/support/scripts/compile_windows_exe-inno.isssimilarity index 98%rename from scripts/compile_windows_exe-inno.issrename to support/scripts/compile_windows_exe-inno.issindex 4004a494..5c1647cf 100644--- a/scripts/compile_windows_exe-inno.iss+++ b/support/scripts/compile_windows_exe-inno.iss@@ -64,7 +64,7 @@ Name: "slovenian"; MessagesFile: "compiler:Languages\Slovenian.isl"Name: "spanish"; MessagesFile: "compiler:Languages\Spanish.isl"Name: "turkish"; MessagesFile: "compiler:Languages\Turkish.isl"Name: "ukrainian"; MessagesFile: "compiler:Languages\Ukrainian.isl"-Name: "chinesesimplified"; MessagesFile: ".\Languages\ChineseSimplified.isl"+Name: "chinesesimplified"; MessagesFile: "..\build\windows\inno\ChineseSimplified.isl"[Tasks]Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: uncheckeddiff --git a/scripts/compile_windows_exe.ps1 b/support/scripts/compile_windows_exe.ps1similarity index 84%rename from scripts/compile_windows_exe.ps1rename to support/scripts/compile_windows_exe.ps1index aa5fcf4b..5930bfd3 100644--- a/scripts/compile_windows_exe.ps1+++ b/support/scripts/compile_windows_exe.ps1@@ -13,9 +13,9 @@ Copy-Item -Path "assets\packaging\logo.ico" -Destination "D:\inno"cd ..-Copy-Item -Path "scripts\windows\x64\*" -Destination "D:\inno" -Recurse+Copy-Item -Path "support\build\windows\x64\*" -Destination "D:\inno" -RecurseRemove-Item "D:\inno-result" -Force -Recurse -ErrorAction SilentlyContinueNew-Item -ItemType Directory -Force -Path "D:\inno-result"-iscc .\scripts\compile_windows_exe-inno.iss+iscc .\support\scripts\compile_windows_exe-inno.issWrite-Output 'Generated Windows exe installer!'diff --git a/scripts/compile_windows_msix_helper.ps1 b/support/scripts/compile_windows_msix_helper.ps1similarity index 100%rename from scripts/compile_windows_msix_helper.ps1rename to support/scripts/compile_windows_msix_helper.ps1diff --git a/scripts/compile_windows_msix_signed.ps1 b/support/scripts/compile_windows_msix_signed.ps1similarity index 100%rename from scripts/compile_windows_msix_signed.ps1rename to support/scripts/compile_windows_msix_signed.ps1diff --git a/scripts/compile_windows_msix_store.ps1 b/support/scripts/compile_windows_msix_store.ps1similarity index 100%rename from scripts/compile_windows_msix_store.ps1rename to support/scripts/compile_windows_msix_store.ps1diff --git a/scripts/compile_windows_zip.ps1 b/support/scripts/compile_windows_zip.ps1similarity index 100%rename from scripts/compile_windows_zip.ps1rename to support/scripts/compile_windows_zip.ps1diff --git a/scripts/contributions_digester.dart b/support/scripts/contributions_digester.dartsimilarity index 100%rename from scripts/contributions_digester.dartrename to support/scripts/contributions_digester.dartdiff --git a/scripts/download_windows_msix.ps1 b/support/scripts/download_windows_msix.ps1similarity index 66%rename from scripts/download_windows_msix.ps1rename to support/scripts/download_windows_msix.ps1index 3f94afae..53254d1d 100644--- a/scripts/download_windows_msix.ps1+++ b/support/scripts/download_windows_msix.ps1@@ -1,4 +1,4 @@# Downloads the MSIX signed by Microsoft# This is useful to publish the MSIX outside of the store# Original script can be found in https://github.com/MattiasC85/Scripts/blob/master/OSD/Download-AppxFromStore.ps1-.\scripts\msix\msix_downloader.ps1 -StoreURL https://www.microsoft.com/store/productId/9NCB4Z0TZ6RR+.\support\scripts\msix\msix_downloader.ps1 -StoreURL https://www.microsoft.com/store/productId/9NCB4Z0TZ6RRdiff --git a/scripts/msix/msix_downloader.ps1 b/support/scripts/msix/msix_downloader.ps1similarity index 100%rename from scripts/msix/msix_downloader.ps1rename to support/scripts/msix/msix_downloader.ps1diff --git a/scripts/remove_proprietary_dependencies.sh b/support/scripts/remove_proprietary_dependencies.shsimilarity index 100%rename from scripts/remove_proprietary_dependencies.shrename to support/scripts/remove_proprietary_dependencies.shdiff --git a/scripts/verify_exe_signature.ps1 b/support/scripts/verify_exe_signature.ps1similarity index 100%rename from scripts/verify_exe_signature.ps1rename to support/scripts/verify_exe_signature.ps1