Skip to content

Commit

Permalink
github: fix build-appimage
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Wheeler committed Aug 15, 2024
1 parent 6b734d1 commit 2975a9f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 20 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/build-appimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@ jobs:
echo "VERSION=$VERSION" >> $GITHUB_ENV
echo "DIST=$DIST" >> $GITHUB_ENV
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y python3 python3-pip
pip3 install appimage-builder
- name: Build AppImage
run: |
docker run --rm -v $(pwd):/workspace -w /workspace centos:7 /bin/bash -c "
Expand All @@ -67,19 +61,18 @@ jobs:
echo 'Building the application...'
./autogen.sh && ./configure && make
# Prepare directories
echo 'Preparing directories...'
# Prepare AppDir and copy necessary files
echo 'Preparing AppDir...'
mkdir -p AppDir/usr/bin AppDir/usr/share/icons/hicolor/scalable/apps AppDir/usr/share/applications
# Install the application into AppDir
echo 'Installing the application...'
make install DESTDIR=$(pwd)/AppDir
# Copy necessary resources
echo 'Copying resources...'
cp src/xnec2c AppDir/usr/bin/
cp resources/xnec2c.svg AppDir/usr/share/icons/hicolor/scalable/apps/
cp files/xnec2c.desktop AppDir/usr/share/applications/
# Manually copy files to their destinations within AppDir
cp src/xnec2c AppDir/usr/bin/xnec2c
cp resources/xnec2c.svg AppDir/usr/share/icons/hicolor/scalable/apps/xnec2c.svg
cp files/xnec2c.desktop AppDir/usr/share/applications/xnec2c.desktop
"
- name: Generate AppImage with appimage-builder
Expand Down
8 changes: 1 addition & 7 deletions appimage-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ AppDir:
app_info:
id: xnec2c
name: xnec2c
icon: resources/xnec2c
icon: usr/share/icons/hicolor/scalable/apps/xnec2c.svg
exec: usr/bin/xnec2c
exec_args: "$@"
version: "${VERSION}${DIST}"
Expand All @@ -21,12 +21,6 @@ AppDir:
- fuse
- other-dependencies

files:
include:
- src/xnec2c: usr/bin/xnec2c
- resources/xnec2c.svg: usr/share/icons/hicolor/scalable/apps/xnec2c.svg
- files/xnec2c.desktop: usr/share/applications/xnec2c.desktop

AppImage:
arch: x86_64
update-information: None
Expand Down

0 comments on commit 2975a9f

Please sign in to comment.