Compare commits

..

10 Commits

Author SHA1 Message Date
raojinlin 2f20870d74 fix WEBKIT_DISABLE_COMPOSITING_MODE env 2024-02-29 17:10:29 +08:00
raojinlin 72311fb45e add AppRun 2024-02-29 16:59:38 +08:00
raojinlin f8b5b3f619 fix running in manjaro 2024-02-29 16:42:52 +08:00
raojinlin bfc3ab8107 xxx 2024-02-29 12:48:09 +08:00
raojinlin 77bc27ee3d fix webkit path 2024-02-29 12:29:06 +08:00
raojinlin e504e6a1a8 copy webkit files 2024-02-29 11:37:01 +08:00
raojinlin 5691d6c808 fix permission 2024-02-29 11:32:12 +08:00
raojinlin fceb151488 add gtk plugin 2024-02-29 11:28:47 +08:00
raojinlin 0c784b1cf0 Merge branch 'feature-linux-appimage-build' of github.com:raojinlin/tiny-rdm into feature-linux-appimage-build 2024-02-29 11:19:44 +08:00
raojinlin 153119e031 link /lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37 2024-02-29 11:19:11 +08:00
2 changed files with 32 additions and 13 deletions

View File

@ -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

View File

@ -1 +1 @@
0d716149856646a7939a157fbfa27913
7d8fc3991382d09b7c9aa07b9d551a05