File tree Expand file tree Collapse file tree 3 files changed +73
-6
lines changed Expand file tree Collapse file tree 3 files changed +73
-6
lines changed Original file line number Diff line number Diff line change 1+ name : Build and Package AppImage
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ - master
8+ - appimage
9+ pull_request :
10+ branches :
11+ - main
12+ - master
13+ - appimage
14+
15+ jobs :
16+ build-appimage :
17+ runs-on : ubuntu-22.04
18+ env :
19+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
20+
21+ steps :
22+ # Checkout the repository
23+ - name : Checkout repository
24+ uses : actions/checkout@v3
25+
26+ # Set up dependencies
27+ - name : Install dependencies
28+ run : |
29+ sudo apt-get update
30+ sudo apt-get install -y build-essential cmake libgl1-mesa-dev libglu1-mesa-dev \
31+ libsdl2-dev libsdl2-net-dev zlib1g-dev
32+
33+ # Build Supermodel
34+ - name : Build Supermodel
35+ run : |
36+ cd ./AppImage
37+ ./build_app_image.sh
38+
39+ - name : Delete Existing latest Release
40+ run : |
41+ gh release delete latest -y || true
42+ gh api -X DELETE /repos/${{ github.repository }}/git/refs/tags/latest || true
43+
44+ # Create release as the "latest" tag
45+ - name : Create Release
46+ id : create_release
47+ uses : actions/create-release@v1
48+ with :
49+ tag_name : latest
50+ release_name : " Supermodel Release latest"
51+ draft : false
52+ prerelease : false
53+
54+ - name : Upload AppImage
55+ uses : actions/upload-release-asset@v1
56+ with :
57+ upload_url : ${{ steps.create_release.outputs.upload_url }}
58+ # upload_url: ${{ github.event.release.upload_url }}
59+ asset_path : ./AppImage/Supermodel-x86_64.AppImage
60+ asset_name : Supermodel-x86_64.AppImage
61+ asset_content_type : application/octet-stream
Original file line number Diff line number Diff line change @@ -362,3 +362,5 @@ saves/
362362/AppImage /appimagetool-x86_64.AppImage
363363/AppImage /Supermodel.AppDir
364364/AppImage /Supermodel-x86_64.AppImage
365+ /AppImage /squashfs-root /
366+ /AppImage /appimagetool
Original file line number Diff line number Diff line change @@ -12,10 +12,6 @@ make -f Makefiles/Makefile.UNIX NET_BOARD=1 APP_IMAGE=1
1212cd ./AppImage
1313mkdir -p ./${APP_DIR}
1414
15- # Download appimagetool (for creating the image)
16- wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage -c
17- chmod +x appimagetool-x86_64.AppImage
18-
1915# Copy binary into folder
2016mkdir -p ./${APP_DIR} /usr/bin
2117cp ../bin/supermodel ./${APP_DIR} /usr/bin/Supermodel
@@ -54,5 +50,13 @@ cp /lib/x86_64-linux-gnu/libxcb-randr.so.0 ./${APP_DIR}/usr/lib/
5450cp /lib/x86_64-linux-gnu/libxcb.so.1 ./${APP_DIR} /usr/lib/
5551cp /lib/x86_64-linux-gnu/libxkbcommon.so.0 ./${APP_DIR} /usr/lib/
5652
57- # Build the app-image
58- ./appimagetool-x86_64.AppImage Supermodel.AppDir
53+ echo " Building appimage"
54+ # Download appimagetool (for creating the image)
55+ wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage -c
56+ chmod +x appimagetool-x86_64.AppImage
57+ # ./appimagetool-x86_64.AppImage Supermodel.AppDir
58+
59+ # Extract out the contents
60+ # NOTE: We do it this way so it can work without FUSE and also work via a github action
61+ ./appimagetool-x86_64.AppImage --appimage-extract
62+ ./squashfs-root/AppRun ./Supermodel.AppDir
You can’t perform that action at this time.
0 commit comments