mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-06-30 02:33:03 -04:00
feat: support AppImage (#3248)
* feat: add build deb shell script * feat: update release.yml * chore: add flatpak readme * feat: support appimage builder * feat: support appimage builder * Update release.yml
This commit is contained in:
parent
773b09c2f7
commit
affd253e21
20 changed files with 260 additions and 38 deletions
|
@ -0,0 +1,76 @@
|
|||
# appimage-builder recipe see https://appimage-builder.readthedocs.io for details
|
||||
version: 1
|
||||
script:
|
||||
- rm -rf AppDir || true
|
||||
- cp -r appflowy_flutter/build/linux/x64/release/bundle AppDir
|
||||
|
||||
# Icon
|
||||
- mkdir -p AppDir/usr/share/icons/hicolor/scalable/apps
|
||||
- cp scripts/linux_distribution/packaging/appflowy.svg AppDir/usr/share/icons/hicolor/scalable/apps/
|
||||
|
||||
AppDir:
|
||||
path: ./AppDir
|
||||
app_info:
|
||||
id: io.appflowy.AppFlowy
|
||||
name: AppFlowy
|
||||
icon: appflowy.svg
|
||||
version: [CHANGE_THIS]
|
||||
exec: AppFlowy
|
||||
exec_args: $@
|
||||
apt:
|
||||
arch:
|
||||
- amd64
|
||||
allow_unauthenticated: true
|
||||
sources:
|
||||
- sourceline: deb http://id.archive.ubuntu.com/ubuntu/ jammy main restricted
|
||||
- sourceline: deb http://id.archive.ubuntu.com/ubuntu/ jammy-updates main restricted
|
||||
- sourceline: deb http://id.archive.ubuntu.com/ubuntu/ jammy universe
|
||||
- sourceline: deb http://id.archive.ubuntu.com/ubuntu/ jammy-updates universe
|
||||
- sourceline: deb http://id.archive.ubuntu.com/ubuntu/ jammy multiverse
|
||||
- sourceline: deb http://id.archive.ubuntu.com/ubuntu/ jammy-updates multiverse
|
||||
- sourceline: deb http://id.archive.ubuntu.com/ubuntu/ jammy-backports main restricted
|
||||
universe multiverse
|
||||
- sourceline: deb http://security.ubuntu.com/ubuntu jammy-security main restricted
|
||||
- sourceline: deb http://security.ubuntu.com/ubuntu jammy-security universe
|
||||
- sourceline: deb http://security.ubuntu.com/ubuntu jammy-security multiverse
|
||||
- sourceline: deb https://ppa.launchpadcontent.net/touchegg/stable/ubuntu/ jammy
|
||||
main
|
||||
- sourceline: deb https://packagecloud.io/slacktechnologies/slack/debian/ jessie
|
||||
main
|
||||
- sourceline: deb [arch=amd64 signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg]
|
||||
https://cli.github.com/packages stable main
|
||||
- sourceline: deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x
|
||||
jammy main
|
||||
- sourceline: deb [arch=amd64,arm64,armhf] http://packages.microsoft.com/repos/code
|
||||
stable main
|
||||
- sourceline: deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable
|
||||
main
|
||||
include:
|
||||
- libc6:amd64
|
||||
files:
|
||||
include: []
|
||||
exclude:
|
||||
- usr/share/man
|
||||
- usr/share/doc/*/README.*
|
||||
- usr/share/doc/*/changelog.*
|
||||
- usr/share/doc/*/NEWS.*
|
||||
- usr/share/doc/*/TODO.*
|
||||
test:
|
||||
fedora-30:
|
||||
image: appimagecrafters/tests-env:fedora-30
|
||||
command: ./AppRun
|
||||
debian-stable:
|
||||
image: appimagecrafters/tests-env:debian-stable
|
||||
command: ./AppRun
|
||||
archlinux-latest:
|
||||
image: appimagecrafters/tests-env:archlinux-latest
|
||||
command: ./AppRun
|
||||
centos-7:
|
||||
image: appimagecrafters/tests-env:centos-7
|
||||
command: ./AppRun
|
||||
ubuntu-xenial:
|
||||
image: appimagecrafters/tests-env:ubuntu-xenial
|
||||
command: ./AppRun
|
||||
AppImage:
|
||||
arch: x86_64
|
||||
update-information: guess
|
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
|
||||
VERSION=$1
|
||||
|
||||
# if the appimage-builder not exist, download it
|
||||
if [ ! -e /usr/local/bin/appimage-builder ]; then
|
||||
wget -O appimage-builder-x86_64.AppImage https://github.com/AppImageCrafters/appimage-builder/releases/download/v1.1.0/appimage-builder-1.1.0-x86_64.AppImage
|
||||
chmod +x appimage-builder-x86_64.AppImage
|
||||
|
||||
# install (optional)
|
||||
sudo mv appimage-builder-x86_64.AppImage /usr/local/bin/appimage-builder
|
||||
fi
|
||||
|
||||
|
||||
# update version
|
||||
grep -rl "\[CHANGE_THIS\]" scripts/linux_distribution/appimage/AppImageBuilder.yml | xargs sed -i "s/\[CHANGE_THIS\]/$VERSION/"
|
||||
|
||||
appimage-builder --recipe scripts/linux_distribution/appimage/AppImageBuilder.yml
|
Loading…
Add table
Add a link
Reference in a new issue