add gtk plugin

This commit is contained in:
raojinlin 2024-02-29 11:28:47 +08:00
parent 0c784b1cf0
commit fceb151488
1 changed files with 5 additions and 2 deletions

View File

@ -133,12 +133,15 @@ jobs:
cp -r $build_dir/usr/share/icons/hicolor/512x512/apps/tiny-rdm.png AppDir/usr/share/icons/hicolor/512x512/apps/ 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/ 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 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"
./linuxdeploy --appdir AppDir \ ./linuxdeploy --appdir AppDir \
--output=appimage \ --output=appimage \
--plugin=gtk \
-e $build_dir/usr/local/bin/tiny-rdm \ -e $build_dir/usr/local/bin/tiny-rdm \
-d $build_dir/usr/share/applications/tiny-rdm.desktop \ -d $build_dir/usr/share/applications/tiny-rdm.desktop
-l /lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37
- name: Rename deb - name: Rename deb
working-directory: ./build/linux working-directory: ./build/linux