-
Notifications
You must be signed in to change notification settings - Fork 17
49 lines (40 loc) · 1.46 KB
/
build-appimage.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Build AppImage
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up CentOS 7 Docker
run: |
docker run --rm -v $(pwd):/workspace -w /workspace centos:7 /bin/bash -c "
yum install -y epel-release
yum groupinstall -y 'Development Tools'
yum install -y gtk3-devel glib2-devel gettext-devel desktop-file-utils \
patchelf wget libtool autoconf automake pkgconfig
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
chmod +x linuxdeploy-x86_64.AppImage
./autogen.sh
./configure
make
mkdir -p AppDir/usr/bin
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/
./linuxdeploy-x86_64.AppImage --appdir AppDir --output appimage
mv xnec2c*.AppImage xnec2c-${{ github.sha }}.AppImage
chmod +x xnec2c-${{ github.sha }}.AppImage
./xnec2c-${{ github.sha }}.AppImage --appimage-extract-and-run -h
"
- name: Upload the AppImage
uses: actions/upload-artifact@v2
with:
name: xnec2c.AppImage
path: xnec2c-${{ github.sha }}.AppImage