Skip to content

Commit

Permalink
Use deploy-project action for Linux CI
Browse files Browse the repository at this point in the history
  • Loading branch information
vicr123 committed Apr 16, 2024
1 parent f2596fe commit 1131ead
Showing 1 changed file with 3 additions and 29 deletions.
32 changes: 3 additions & 29 deletions .github/workflows/linux-appimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,33 +45,7 @@ jobs:
project: .
commitish: .
- name: Deploy theterminal
env:
SOURCE_DIRECTORY: ${{ steps.theterminal.outputs.source-directory }}
BUILD_DIRECTORY: ${{ steps.theterminal.outputs.build-directory }}
INSTALL_DIRECTORY: ${{ steps.theterminal.outputs.install-directory }}
run: |
rm $QT_PLUGIN_PATH/sqldrivers/libqsqlmimer.so
sudo apt-get install libfuse2 libxcb-cursor0
curl https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage -o linuxdeployqt -L
chmod +x ./linuxdeployqt
mkdir -p ./appdir/usr
mv "$INSTALL_DIRECTORY/"* ./appdir/usr
find ./appdir/usr/qml -type f | while read -r elf
do
# Check if elf is an executable
if file "${elf}" | grep -q ELF; then
rpath="\$ORIGIN/$(realpath --relative-to="$(dirname "${elf}")" ./appdir/usr/lib)"
echo "Setting RUNPATH of ${elf} to ${rpath}"
patchelf --set-rpath "${rpath}" "${elf}"
fi
done
mkdir -p ./appdir/usr/share/doc/libc6/
touch ./appdir/usr/share/doc/libc6/copyright
./linuxdeployqt ./appdir/usr/share/applications/*.desktop -appimage -qmldir="$SOURCE_DIRECTORY" -unsupported-allow-new-glibc
- name: Upload theterminal artifact
uses: actions/upload-artifact@v4
uses: theCheeseboard/actions/deploy-project@actions
with:
name: theterminal-linux
path: "*.AppImage"
sourceDirectory: ${{ steps.theterminal.outputs.source-directory }}
buildDirectory: ${{ steps.theterminal.outputs.build-directory }}

0 comments on commit 1131ead

Please sign in to comment.