Cross-platform Xcode replacement. Build and deploy iOS apps with SwiftPM on Linux, Windows, macOS.
cache linuxdeploy
Kabir Oberai63ba808d1007
diff --git a/Linux/build.sh b/Linux/build.shindex 36f557c..d05073c 100755--- a/Linux/build.sh+++ b/Linux/build.sh@@ -13,29 +13,44 @@ if ! command -v fusermount &>/dev/null; thenexport APPIMAGE_EXTRACT_AND_RUN=1fi-rm -rf staging-mkdir staging+rm -rf staging/tmp+mkdir -p staging/tmp staging/linuxdeployswift build --package-path .. -c release --product SupersignCLI --static-swift-stdlibbin="$(swift build --package-path .. -c release --show-bin-path)"strip "${bin}/SupersignCLI"-curl "https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-$(arch).AppImage" \- -Lo staging/linuxdeploy.AppImage-chmod +x staging/linuxdeploy.AppImage+curr_git_info="$(curl -sS https://api.github.com/repos/linuxdeploy/linuxdeploy/git/refs/tags/continuous)"-mkdir -p staging/AppDir/usr/bin-find "${bin}"/ -name '*.resources' -print0 | xargs -0 -I {} cp -a {} "${PWD}/staging/AppDir/usr/bin/"+if [[ -f staging/linuxdeploy/git.json ]]; then+ if ! cmp -s staging/linuxdeploy/git.json <(echo "$curr_git_info"); then+ echo "[info] Updating linuxdeploy"+ rm -rf staging/linuxdeploy/linuxdeploy.AppImage+ fi+else+ echo "[info] Downloading linuxdeploy"+ rm -rf staging/linuxdeploy/linuxdeploy.AppImage+fi++if [[ ! -f staging/linuxdeploy/linuxdeploy.AppImage ]]; then+ curl "https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-$(arch).AppImage" \+ -Lo staging/linuxdeploy/linuxdeploy.AppImage+ chmod +x staging/linuxdeploy/linuxdeploy.AppImage+ echo "$curr_git_info" > staging/linuxdeploy/git.json+fi++mkdir -p staging/tmp/AppDir/usr/bin+find "${bin}"/ -name '*.resources' -print0 | xargs -0 -I {} cp -a {} "${PWD}/staging/tmp/AppDir/usr/bin/"-OUTPUT="staging/Supersign.AppImage" ./staging/linuxdeploy.AppImage \- --appdir staging/AppDir \+OUTPUT="staging/tmp/Supersign.AppImage" ./staging/linuxdeploy/linuxdeploy.AppImage \+ --appdir staging/tmp/AppDir \--output appimage \-e "${bin}/SupersignCLI" \-d Supersign.desktop \-i Supersign.pngmkdir -p packages-mv -f staging/Supersign.AppImage packages/Supersign.AppImage+mv -f staging/tmp/Supersign.AppImage packages/Supersign.AppImage-rm -rf staging+rm -rf staging/tmpecho "[info] Success!"