mirror of
https://github.com/Drop-OSS/drop-app.git
synced 2025-11-10 04:22:13 +10:00
* feat: small refactor * fix: appimage build script * fix: add NO_STRIP to AppImage build * fix: build and dev mode from refactor * fix: submodule step 1 * fix: submodules step 2
22 lines
723 B
Bash
Executable File
22 lines
723 B
Bash
Executable File
## This script is largely useless, because there's not much we can do about AppImage size
|
|
|
|
ARCH=$(uname -m)
|
|
|
|
# build tauri apps
|
|
# NO_STRIP=true yarn tauri build -- --verbose
|
|
|
|
# unpack appimage
|
|
APPIMAGE=$(ls ./src-tauri/target/release/bundle/appimage/*.AppImage)
|
|
"$APPIMAGE" --appimage-extract
|
|
|
|
# strip binary
|
|
APPIMAGE_UNPACK="./squashfs-root"
|
|
find $APPIMAGE_UNPACK -type f -exec strip -s {} \;
|
|
|
|
APPIMAGETOOL=$(echo "obsolete-appimagetool-$ARCH.AppImage")
|
|
wget -O $APPIMAGETOOL "https://github.com/AppImage/AppImageKit/releases/download/13/$APPIMAGETOOL"
|
|
chmod +x $APPIMAGETOOL
|
|
|
|
APPIMAGE_OUTPUT=$(./$APPIMAGETOOL $APPIMAGE_UNPACK | grep ".AppImage" | grep squashfs-root | awk '{ print $6 }')
|
|
|
|
mv $APPIMAGE_OUTPUT "$APPIMAGE" |