-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Use new appimage packaging for Linux builds
Fixed library name and removed unneeded packages Use azure mirror, skip tests Because GH Actions docker is flaky Use png file for icon Added additional libraries
Nguyen Thai
committed
Oct 4, 2023
1 parent
a8a9589
commit 3be0cca
Showing
6 changed files
with
96 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# appimage-builder recipe see https://appimage-builder.readthedocs.io for details | ||
script: | ||
- rm -rf AppDir | true | ||
- cp -r ./build/linux/x64/{{BUILD_TYPE}}/bundle AppDir | ||
- mkdir -p AppDir/usr/share/icons/hicolor/64x64/apps/ | ||
- cp ./assets/logo.svg AppDir/usr/share/icons/hicolor/64x64/apps/twake.svg | ||
version: 1 | ||
AppDir: | ||
path: ./AppDir | ||
app_info: | ||
id: com.linagora.linux.twake | ||
name: Twake | ||
icon: twake | ||
version: latest | ||
exec: fluffychat | ||
exec_args: $@ | ||
apt: | ||
arch: | ||
- amd64 | ||
allow_unauthenticated: true | ||
sources: | ||
- sourceline: deb http://azure.archive.ubuntu.com/ubuntu/ {{VERSION_CODENAME}} main restricted universe multiverse | ||
key_url: "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x871920D1991BC93C" | ||
- sourceline: deb http://azure.archive.ubuntu.com/ubuntu/ {{VERSION_CODENAME}}-updates main restricted universe multiverse | ||
key_url: "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x871920D1991BC93C" | ||
- sourceline: deb http://azure.archive.ubuntu.com/ubuntu/ {{VERSION_CODENAME}}-backports main restricted universe multiverse | ||
key_url: "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x871920D1991BC93C" | ||
- sourceline: deb http://azure.archive.ubuntu.com/ubuntu {{VERSION_CODENAME}}-security main restricted universe multiverse | ||
key_url: "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x871920D1991BC93C" | ||
include: | ||
- libgtk-3-0 | ||
- libwayland-cursor0 | ||
- libc6 | ||
- libjsoncpp25 | ||
- libsecret-1-0 | ||
- libmpv1 | ||
- libdrm2 | ||
- libolm3 | ||
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-bionic | ||
command: ./AppRun | ||
AppImage: | ||
arch: x86_64 | ||
update-information: guess |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
#!/bin/bash | ||
|
||
# Setup AppImageTool for packaging | ||
echo "Setting up AppImageTool" | ||
curl -o appimagetool -L "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage" | ||
chmod +x appimagetool | ||
sudo mv appimagetool /usr/local/bin/ | ||
# Setup appimage-builder for packaging | ||
echo "Setting up appimage-builder" | ||
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 | ||
sudo mv appimage-builder-x86_64.AppImage /usr/local/bin/appimage-builder | ||
|
||
echo "Packaging." | ||
flutter pub global run flutter_distributor:main.dart package --platform linux --targets appimage --skip-clean --flutter-build-args="profile" | ||
export BUILD_TYPE=profile | ||
# This is to set environment variable from a file | ||
# https://stackoverflow.com/a/45971167/8296391 | ||
set -a; . /etc/os-release; set +a | ||
appimage-builder --recipe appimage/AppImageBuilder.yml --skip-tests | ||
mkdir dist && cp ./*.AppImage dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
#!/bin/bash | ||
|
||
# Setup AppImageTool for packaging | ||
echo "Setting up AppImageTool" | ||
curl -o appimagetool -L "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage" | ||
chmod +x appimagetool | ||
sudo mv appimagetool /usr/local/bin/ | ||
# Setup appimage-builder for packaging | ||
echo "Setting up appimage-builder" | ||
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 | ||
sudo mv appimage-builder-x86_64.AppImage /usr/local/bin/appimage-builder | ||
|
||
echo "Packaging." | ||
flutter pub global run flutter_distributor:main.dart package --platform linux --targets appimage --skip-clean --flutter-build-args="release" | ||
export BUILD_TYPE=release | ||
# This is to set environment variable from a file | ||
# https://stackoverflow.com/a/45971167/8296391 | ||
set -a; . /etc/os-release; set +a | ||
appimage-builder --recipe appimage/AppImageBuilder.yml --skip-tests | ||
mkdir dist && cp ./*.AppImage dist/ |