mirror of https://github.com/helix-editor/helix
Merge a6d7fc6cdc
into 205e7ece70
commit
de4663dd38
|
@ -154,9 +154,9 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
if: matrix.build == 'x86_64-linux'
|
if: matrix.build == 'x86_64-linux'
|
||||||
run: |
|
run: |
|
||||||
# Required as of 22.x https://github.com/AppImage/AppImageKit/wiki/FUSE
|
export APPIMAGE_EXTRACT_AND_RUN=1
|
||||||
sudo add-apt-repository universe
|
sudo add-apt-repository universe
|
||||||
sudo apt install libfuse2
|
sudo apt install desktop-file-utils zsync
|
||||||
|
|
||||||
mkdir dist
|
mkdir dist
|
||||||
|
|
||||||
|
@ -179,21 +179,32 @@ jobs:
|
||||||
rm -rf runtime/grammars/sources
|
rm -rf runtime/grammars/sources
|
||||||
cp -r runtime "$APP.AppDir/usr/lib/helix/runtime"
|
cp -r runtime "$APP.AppDir/usr/lib/helix/runtime"
|
||||||
|
|
||||||
|
# Bundle libc and all dependencies
|
||||||
|
ldd "$APP.AppDir"/usr/bin/hx | awk -F"[> ]" '{print $4}' \
|
||||||
|
| xargs -I {} cp -vf {} "$APP.AppDir"/usr/lib
|
||||||
|
cp -v /lib64/ld-linux-x86-64.so.2 "$APP.AppDir"
|
||||||
|
rm -f "$APP.AppDir"/usr/lib/ld-linux-x86-64.so.2 2>/dev/null || true
|
||||||
|
|
||||||
cat << 'EOF' > "$APP.AppDir/AppRun"
|
cat << 'EOF' > "$APP.AppDir/AppRun"
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
APPDIR="$(dirname "$(readlink -f "${0}")")"
|
APPDIR="$(dirname "$(readlink -f "${0}")")"
|
||||||
HELIX_RUNTIME="$APPDIR/usr/lib/helix/runtime" exec "$APPDIR/usr/bin/hx" "$@"
|
unset ARGV0
|
||||||
|
export HELIX_RUNTIME="$APPDIR/usr/lib/helix/runtime"
|
||||||
|
exec "$APPDIR/ld-linux-x86-64.so.2" \
|
||||||
|
--library-path "$APPDIR/usr/lib" "$APPDIR/usr/bin/hx" "$@"
|
||||||
EOF
|
EOF
|
||||||
chmod 755 "$APP.AppDir/AppRun"
|
chmod 755 "$APP.AppDir/AppRun"
|
||||||
|
|
||||||
curl -Lo linuxdeploy-x86_64.AppImage \
|
cp contrib/Helix.desktop "$APP.AppDir"
|
||||||
https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
|
cp contrib/helix.png "$APP.AppDir"
|
||||||
chmod +x linuxdeploy-x86_64.AppImage
|
ln -s helix.png "$APP.AppDir"/.DirIcon
|
||||||
|
|
||||||
./linuxdeploy-x86_64.AppImage \
|
curl -Lo appimagetool \
|
||||||
--appdir "$APP.AppDir" -d contrib/Helix.desktop \
|
"https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage"
|
||||||
-i contrib/helix.png --output appimage
|
chmod +x appimagetool
|
||||||
|
|
||||||
|
./appimagetool -n -u "$UPDATE_INFORMATION" ./"$APP.AppDir" \
|
||||||
|
./"$APP-$VERSION-$ARCH.AppImage"
|
||||||
|
|
||||||
mv "$APP-$VERSION-$ARCH.AppImage" \
|
mv "$APP-$VERSION-$ARCH.AppImage" \
|
||||||
"$APP-$VERSION-$ARCH.AppImage.zsync" dist
|
"$APP-$VERSION-$ARCH.AppImage.zsync" dist
|
||||||
|
@ -291,7 +302,7 @@ jobs:
|
||||||
file_glob: true
|
file_glob: true
|
||||||
tag: ${{ github.ref_name }}
|
tag: ${{ github.ref_name }}
|
||||||
overwrite: true
|
overwrite: true
|
||||||
|
|
||||||
- name: Upload binaries as artifact
|
- name: Upload binaries as artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
if: env.preview == 'true'
|
if: env.preview == 'true'
|
||||||
|
|
Loading…
Reference in New Issue