Generate linux appimage when building
This commit is contained in:
parent
b2747c7610
commit
ac9b68f15f
2 changed files with 19 additions and 20 deletions
|
@ -2,8 +2,9 @@
|
||||||
version: 1
|
version: 1
|
||||||
script:
|
script:
|
||||||
- rm -rf AppDir || true
|
- rm -rf AppDir || true
|
||||||
- flutter pub get
|
|
||||||
- rm -rf build || true
|
- rm -rf build || true
|
||||||
|
- rm -rf appimage-build
|
||||||
|
- flutter pub get
|
||||||
- flutter build linux
|
- flutter build linux
|
||||||
- cp -r build/linux/x64/release/bundle AppDir
|
- cp -r build/linux/x64/release/bundle AppDir
|
||||||
- mkdir -p AppDir/usr/share/icons/hicolor/64x64/apps
|
- mkdir -p AppDir/usr/share/icons/hicolor/64x64/apps
|
||||||
|
@ -17,9 +18,20 @@ AppDir:
|
||||||
version: latest
|
version: latest
|
||||||
exec: nbteditor
|
exec: nbteditor
|
||||||
exec_args: $@
|
exec_args: $@
|
||||||
pacman:
|
apt:
|
||||||
include: []
|
arch:
|
||||||
exclude: []
|
- amd64
|
||||||
|
allow_unauthenticated: true
|
||||||
|
sources:
|
||||||
|
- sourceline: deb http://deb.debian.org/debian/ bookworm main non-free-firmware
|
||||||
|
- sourceline: deb http://security.debian.org/debian-security bookworm-security main non-free-firmware
|
||||||
|
- sourceline: deb http://deb.debian.org/debian/ bookworm-updates main non-free-firmware
|
||||||
|
include:
|
||||||
|
- libc6:amd64
|
||||||
|
- libgtk-3-0
|
||||||
|
- libgtk-4-1
|
||||||
|
- libwayland-bin
|
||||||
|
- libwayland-cursor0
|
||||||
files:
|
files:
|
||||||
include:
|
include:
|
||||||
- /lib64/ld-linux-x86-64.so.2
|
- /lib64/ld-linux-x86-64.so.2
|
||||||
|
@ -29,22 +41,6 @@ AppDir:
|
||||||
- usr/share/doc/*/changelog.*
|
- usr/share/doc/*/changelog.*
|
||||||
- usr/share/doc/*/NEWS.*
|
- usr/share/doc/*/NEWS.*
|
||||||
- usr/share/doc/*/TODO.*
|
- 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:
|
AppImage:
|
||||||
arch: x86_64
|
arch: x86_64
|
||||||
update-information: guess
|
update-information: guess
|
||||||
|
|
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
|
@ -25,6 +25,8 @@ pipeline {
|
||||||
tar -cvf ../../../../../linux.tgz ./
|
tar -cvf ../../../../../linux.tgz ./
|
||||||
cd ../../../../app/outputs/flutter-apk
|
cd ../../../../app/outputs/flutter-apk
|
||||||
cp app-release.apk ../../../../
|
cp app-release.apk ../../../../
|
||||||
|
|
||||||
|
appimage-builder --recipe AppImageBuilder.yml
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -33,6 +35,7 @@ pipeline {
|
||||||
archiveArtifacts artifacts: '*.tgz', fingerprint: true
|
archiveArtifacts artifacts: '*.tgz', fingerprint: true
|
||||||
archiveArtifacts artifacts: '*.apk', fingerprint: true
|
archiveArtifacts artifacts: '*.apk', fingerprint: true
|
||||||
archiveArtifacts artifacts: 'out/*', fingerprint: true
|
archiveArtifacts artifacts: 'out/*', fingerprint: true
|
||||||
|
archiveArtifacts artifacts: '*.AppImage', fingerprint: true
|
||||||
|
|
||||||
deleteDir()
|
deleteDir()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue