|
|
|
@ -121,23 +121,42 @@ jobs:
|
|
|
|
|
|
|
|
|
|
- name: Package up appimage file
|
|
|
|
|
run: |
|
|
|
|
|
curl https://github.com/linuxdeploy/linuxdeploy/releases/download/1-alpha-20240109-1/linuxdeploy-${{ steps.normalise_platform_arch.outputs.arch }}.AppImage \
|
|
|
|
|
curl https://github.com/linuxdeploy/linuxdeploy/releases/download/1-alpha-20240109-1/linuxdeploy-${{ steps.normalise_platform_arch.outputs.arch }}.AppImage \
|
|
|
|
|
-o linuxdeploy \
|
|
|
|
|
-L
|
|
|
|
|
chmod u+x linuxdeploy
|
|
|
|
|
chmod u+x linuxdeploy
|
|
|
|
|
|
|
|
|
|
./linuxdeploy --appdir AppDir
|
|
|
|
|
mkdir -p AppDir/usr/share/icons/hicolor/512x512/apps
|
|
|
|
|
build_dir="build/linux/tiny-rdm_${{ steps.normalise_version.outputs.version }}_amd64"
|
|
|
|
|
./linuxdeploy --appdir AppDir
|
|
|
|
|
|
|
|
|
|
cp -r $build_dir/usr/share/icons/hicolor/512x512/apps/tiny-rdm.png AppDir/usr/share/icons/hicolor/512x512/apps/
|
|
|
|
|
cp $build_dir/usr/local/bin/tiny-rdm AppDir/usr/bin/
|
|
|
|
|
pushd AppDir
|
|
|
|
|
# Copy WebKit files.
|
|
|
|
|
find /usr/lib* -name WebKitNetworkProcess -exec mkdir -p $(dirname '{}') \; -exec cp --parents '{}' "." \; || true
|
|
|
|
|
find /usr/lib* -name WebKitWebProcess -exec mkdir -p $(dirname '{}') \; -exec cp --parents '{}' "." \; || true
|
|
|
|
|
find /usr/lib* -name libwebkit2gtkinjectedbundle.so -exec mkdir -p $(dirname '{}') \; -exec cp --parents '{}' "." \; || true
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
sed -i 's#/usr/local/bin/tiny-rdm#tiny-rdm#g' $build_dir/usr/share/applications/tiny-rdm.desktop
|
|
|
|
|
./linuxdeploy --appdir AppDir \
|
|
|
|
|
--output=appimage \
|
|
|
|
|
-e $build_dir/usr/local/bin/tiny-rdm \
|
|
|
|
|
-d $build_dir/usr/share/applications/tiny-rdm.desktop
|
|
|
|
|
|
|
|
|
|
mkdir -p AppDir/usr/share/icons/hicolor/512x512/apps
|
|
|
|
|
build_dir="build/linux/tiny-rdm_${{ steps.normalise_version.outputs.version }}_amd64"
|
|
|
|
|
|
|
|
|
|
cp -r $build_dir/usr/share/icons/hicolor/512x512/apps/tiny-rdm.png AppDir/usr/share/icons/hicolor/512x512/apps/
|
|
|
|
|
cp $build_dir/usr/local/bin/tiny-rdm AppDir/usr/bin/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sed -i 's#/usr/local/bin/tiny-rdm#tiny-rdm#g' $build_dir/usr/share/applications/tiny-rdm.desktop
|
|
|
|
|
|
|
|
|
|
curl -o linuxdeploy-plugin-gtk.sh "https://raw.githubusercontent.com/tauri-apps/linuxdeploy-plugin-gtk/master/linuxdeploy-plugin-gtk.sh"
|
|
|
|
|
|
|
|
|
|
sed -i '/XDG_DATA_DIRS/a export WEBKIT_DISABLE_COMPOSITING_MODE=1' linuxdeploy-plugin-gtk.sh
|
|
|
|
|
chmod +x linuxdeploy-plugin-gtk.sh
|
|
|
|
|
|
|
|
|
|
curl -o AppDir/AppRun https://github.com/AppImage/AppImageKit/releases/download/continuous/AppRun-${{ steps.normalise_platform_arch.outputs.arch }} -L
|
|
|
|
|
|
|
|
|
|
./linuxdeploy --appdir AppDir \
|
|
|
|
|
--output=appimage \
|
|
|
|
|
--plugin=gtk \
|
|
|
|
|
-e $build_dir/usr/local/bin/tiny-rdm \
|
|
|
|
|
-d $build_dir/usr/share/applications/tiny-rdm.desktop
|
|
|
|
|
|
|
|
|
|
- name: Rename deb
|
|
|
|
|
working-directory: ./build/linux
|
|
|
|
|