Skip to content

Commit 87db0e5

Browse files
committed
Add OpenSCAD AppImage
1 parent 559fad9 commit 87db0e5

5 files changed

Lines changed: 35 additions & 26 deletions

File tree

.github/workflows/appimage-nightly.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ on:
77
# comment these two out to enable nightly builds, This sets the variable DEVEL_RELEASE=1 for #
88
# get-dependencies.sh to make a nightly release, this will make a release with 'nightly' tag #
99
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
10-
# schedule:
11-
# - cron: "0 5 1/2 * *" # We default to rebuilding nightly every 2 days, change this to your liking
10+
schedule:
11+
- cron: "0 5 1/2 * *" # We default to rebuilding nightly every 2 days, change this to your liking
1212
workflow_dispatch: {}
1313

1414
jobs:
@@ -27,15 +27,15 @@ jobs:
2727
arch: aarch64
2828
container: ghcr.io/pkgforge-dev/archlinux:latest
2929
steps:
30-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
30+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
3131
- name: Preparing Container
3232
uses: pkgforge-dev/anylinux-setup-action@0964f2258d6c93d1391359978dde081fd8b3c6af # v2
3333
- name: Install Dependencies
3434
run: DEVEL_RELEASE=1 /bin/sh ./get-dependencies.sh
3535
- name: Make AppImage
3636
run: DEVEL_RELEASE=1 /bin/sh ./make-appimage.sh
3737
- name: Upload artifact
38-
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
38+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
3939
with:
4040
name: AppImage-${{ matrix.arch }}
4141
path: dist
@@ -46,7 +46,7 @@ jobs:
4646
permissions: write-all
4747
runs-on: ubuntu-latest
4848
steps:
49-
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
49+
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
5050
with:
5151
pattern: AppImage-*
5252
merge-multiple: true

.github/workflows/appimage.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ jobs:
2323
arch: aarch64
2424
container: ghcr.io/pkgforge-dev/archlinux:latest
2525
steps:
26-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
26+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2727
- name: Preparing Container
2828
uses: pkgforge-dev/anylinux-setup-action@0964f2258d6c93d1391359978dde081fd8b3c6af # v2
2929
- name: Install Dependencies
3030
run: /bin/sh ./get-dependencies.sh
3131
- name: Make AppImage
3232
run: /bin/sh ./make-appimage.sh
3333
- name: Upload artifact
34-
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
34+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
3535
with:
3636
name: AppImage-${{ matrix.arch }}
3737
path: dist
@@ -42,7 +42,7 @@ jobs:
4242
permissions: write-all
4343
runs-on: ubuntu-latest
4444
steps:
45-
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
45+
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
4646
with:
4747
pattern: AppImage-*
4848
merge-multiple: true

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<div align="center">
22

3-
# TEMPLATE-AppImage 🐧
3+
# OpenSCAD-AppImage 🐧
44

5-
[![GitHub Downloads](https://img.shields.io/github/downloads/pkgforge-dev/TEMPLATE-AppImage/total?logo=github&label=GitHub%20Downloads)](https://github.com/pkgforge-dev/TEMPLATE-AppImage/releases/latest)
6-
[![CI Build Status](https://github.com/pkgforge-dev/TEMPLATE-AppImage/actions/workflows/appimage.yml/badge.svg)](https://github.com/pkgforge-dev/TEMPLATE-AppImage/releases/latest)
7-
[![Latest Stable Release](https://img.shields.io/github/v/release/pkgforge-dev/TEMPLATE-AppImage)](https://github.com/pkgforge-dev/TEMPLATE-AppImage/releases/latest)
5+
[![GitHub Downloads](https://img.shields.io/github/downloads/pkgforge-dev/OpenSCAD-AppImage/total?logo=github&label=GitHub%20Downloads)](https://github.com/pkgforge-dev/OpenSCAD-AppImage/releases/latest)
6+
[![CI Build Status](https://github.com/pkgforge-dev/OpenSCAD-AppImage/actions/workflows/appimage.yml/badge.svg)](https://github.com/pkgforge-dev/OpenSCAD-AppImage/releases/latest)
7+
[![Latest Stable Release](https://img.shields.io/github/v/release/pkgforge-dev/OpenSCAD-AppImage)](https://github.com/pkgforge-dev/OpenSCAD-AppImage/releases/latest)
88

99
<p align="center">
1010
<img src="https://github.com/pkgforge-dev.png" width="128" />
@@ -13,7 +13,7 @@
1313

1414
| Latest Stable Release | Upstream URL |
1515
| :---: | :---: |
16-
| [Click here](https://github.com/pkgforge-dev/TEMPLATE-AppImage/releases/latest) | [Click here](https://github.com/pkgforge-dev/Anylinux-AppImages) |
16+
| [Click here](https://github.com/pkgforge-dev/OpenSCAD-AppImage/releases/latest) | [Click here](https://openscad.org/) |
1717

1818
</div>
1919

get-dependencies.sh

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ ARCH=$(uname -m)
66

77
echo "Installing package dependencies..."
88
echo "---------------------------------------------------------------"
9-
# pacman -Syu --noconfirm PACKAGESHERE
9+
if [ "${DEVEL_RELEASE-}" = 1 ]; then
10+
pacman -Syu --noconfirm
11+
else
12+
pacman -Syu --noconfirm openscad qt5-wayland
13+
fi
1014

1115
echo "Installing debloated packages..."
1216
echo "---------------------------------------------------------------"
@@ -18,9 +22,9 @@ get-debloated-pkgs --add-common --prefer-nano
1822
# If the application needs to be manually built that has to be done down here
1923

2024
# if you also have to make nightly releases check for DEVEL_RELEASE = 1
21-
#
22-
# if [ "${DEVEL_RELEASE-}" = 1 ]; then
23-
# nightly build steps
24-
# else
25-
# regular build steps
26-
# fi
25+
if [ "${DEVEL_RELEASE-}" = 1 ]; then
26+
make-aur-package openscad-git
27+
pacman -Q openscad-git | awk '{print $2; exit}' > ~/version
28+
else
29+
pacman -Q openscad | awk '{print $2; exit}' > ~/version
30+
fi

make-appimage.sh

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,21 @@
33
set -eu
44

55
ARCH=$(uname -m)
6-
VERSION=$(pacman -Q PACKAGENAME | awk '{print $2; exit}') # example command to get version of application here
7-
export ARCH VERSION
6+
export ARCH
87
export OUTPATH=./dist
98
export ADD_HOOKS="self-updater.hook"
10-
export UPINFO="gh-releases-zsync|${GITHUB_REPOSITORY%/*}|${GITHUB_REPOSITORY#*/}|latest|*$ARCH.AppImage.zsync"
11-
export ICON=PATH_OR_URL_TO_ICON
12-
export DESKTOP=PATH_OR_URL_TO_DESKTOP_ENTRY
9+
export ICON=/usr/share/icons/hicolor/512x512/apps/openscad.png
10+
export DESKTOP=/usr/share/applications/openscad.desktop
11+
export DEPLOY_OPENGL=1
12+
13+
# On Arch Linux qt5-wayland also adds the server side plugins
14+
# remove them so that they do not get deployed
15+
rm -rf /usr/lib/qt/plugins/wayland-graphics-integration-server
1316

1417
# Deploy dependencies
15-
quick-sharun /PATH/TO/BINARY_AND_LIBRARIES_HERE
18+
quick-sharun \
19+
/usr/bin/openscad \
20+
/usr/share/openscad
1621

1722
# Additional changes can be done in between here
1823

0 commit comments

Comments
 (0)