#!/bin/bash # $1 is the binary location, $2 is the arch, $3 is the version 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"