NotePostApp/packaging/scripts/appimage_build.sh

12 lines
538 B
Bash
Raw Normal View History

2019-12-03 16:13:23 -07:00
#!/bin/bash
# $1 is the binary location, $2 is the arch, $3 is the version
2019-12-03 16:13:23 -07:00
mkdir out
mkdir -p appimage/NotePost.AppDir/usr/lib/notepost
rm -rf appimage/NotePost.AppDir/usr/lib/notepost
mv "$1com.netsyms.NotePostApp" "$1notepost"
rsync -rv "$1" appimage/NotePost.AppDir/usr/lib/notepost
chmod +x appimage/NotePost.AppDir/AppRun
wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage -O appimagetool
chmod +x appimagetool
./appimagetool appimage/NotePost.AppDir "out/NotePost_$2_$3.AppImage"