10 Commits
5 changed files with 44 additions and 4 deletions
Binary file not shown.
+33 -2
View File
@@ -11,7 +11,7 @@ on:
jobs:
appimage-x86_64:
name: AppImage x86_64
runs-on: ubuntu-16.04
runs-on: ubuntu-18.04
env:
ARCH: x86_64
steps:
@@ -28,7 +28,7 @@ jobs:
appimage-i386:
name: AppImage i386
runs-on: ubuntu-16.04
runs-on: ubuntu-18.04
env:
ARCH: i386
steps:
@@ -48,11 +48,42 @@ jobs:
name: AppImage i386
path: linuxdeploy-plugin-appimage*.AppImage*
appimage-aarch64:
name: AppImage aarch64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.1.0
with:
submodules: recursive
- name: Build AppImage
uses: uraimo/run-on-arch-action@v2.0.5
with:
arch: aarch64
distro: ubuntu18.04
githubToken: ${{ github.token }}
dockerRunArgs: |
--volume "${PWD}:/build"
install: |
apt update
apt install -y build-essential wget
wget -q -O cmake-install.sh https://github.com/Kitware/CMake/releases/download/v3.22.5/cmake-3.22.5-Linux-$(uname -m).sh
sh cmake-install.sh --prefix=/usr --skip-license --exclude-subdir
rm cmake-install.sh
run: |
cd /build
ARCH=$(uname -m) ci/build-appimage.sh
- name: Archive artifacts
uses: actions/upload-artifact@v2
with:
name: AppImage aarch64
path: linuxdeploy-plugin-appimage*.AppImage*
upload:
name: Create release and upload artifacts
needs:
- appimage-x86_64
- appimage-i386
- appimage-aarch64
runs-on: ubuntu-latest
steps:
- name: Download artifacts
+2 -1
View File
@@ -15,7 +15,6 @@ When calling linuxdeploy, just add `--output appimage` to enable the plugin. Aft
*For more information, see the [official AppImage packaging guide](https://docs.appimage.org/packaging-guide/native-binaries.html).*
### Standalone usage
Like all linuxdeploy plugins, linuxdeploy-plugin-appimage is a standalone tool and can be used without linuxdeploy.
@@ -29,6 +28,7 @@ The official linuxdeploy AppImage ships with a fairly recent version of the plug
*For more information on how linuxdeploy's plugin system works, please refer to [the documentation](https://docs.appimage.org/packaging-guide/linuxdeploy-user-guide.html#plugin-system).*
### Optional variables
linuxdeploy-plugin-appimage can be configured using environment variables.
@@ -38,3 +38,4 @@ linuxdeploy-plugin-appimage can be configured using environment variables.
- `SIGN_KEY=key_id`: GPG Key ID to use for signing. This environment variable is only used if `SIGN` is set.
- `VERBOSE=1`: set this variable to any value to enable verbose output
- `OUTPUT=filename`: change filename of resulting AppImage
- `NO_APPSTREAM=1`: skip checking AppStream metadata for issues
+5 -1
View File
@@ -30,6 +30,10 @@ if [ "$ARCH" == "x86_64" ]; then
EXTRA_CMAKE_ARGS=()
elif [ "$ARCH" == "i386" ]; then
EXTRA_CMAKE_ARGS=("-DCMAKE_TOOLCHAIN_FILE=$REPO_ROOT/cmake/toolchains/i386-linux-gnu.cmake")
elif [ "$ARCH" == "armhf" ]; then
EXTRA_CMAKE_ARGS=()
elif [ "$ARCH" == "aarch64" ]; then
EXTRA_CMAKE_ARGS=()
else
echo "Architecture not supported: $ARCH" 1>&2
exit 1
@@ -44,7 +48,7 @@ make install DESTDIR=AppDir
AIK_ARCH="$ARCH"
[ "$ARCH" == "i386" ] && AIK_ARCH="i686"
wget https://github.com/TheAssassin/linuxdeploy/releases/download/continuous/linuxdeploy-"$ARCH".AppImage
wget https://github.com/encounter/linuxdeploy/releases/download/continuous/linuxdeploy-"$ARCH".AppImage
chmod +x linuxdeploy-"$ARCH".AppImage
# bundle appimagetool
+4
View File
@@ -129,6 +129,10 @@ int main(const int argc, const char* const* const argv) {
args.push_back(strdup(getenv("OUTPUT")));
}
if (getenv("NO_APPSTREAM") != nullptr) {
args.push_back(strdup("--no-appstream"));
}
args.push_back(nullptr);
std::cerr << "Running command: " << pathToAppimagetool;