mirror of
https://github.com/transmission/transmission.git
synced 2025-12-12 20:35:49 +01:00
WIP
This commit is contained in:
60
.github/workflows/actions.yml
vendored
60
.github/workflows/actions.yml
vendored
@@ -3,6 +3,7 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- 'main'
|
||||
- wip/appimage
|
||||
pull_request:
|
||||
branches:
|
||||
- 'main'
|
||||
@@ -793,3 +794,62 @@ jobs:
|
||||
with:
|
||||
name: binaries-${{ github.job }}
|
||||
path: pfx/**/*
|
||||
|
||||
appimage-gtk3:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Get Source
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
path: src
|
||||
submodules: recursive
|
||||
- name: Get Dependencies
|
||||
run: |
|
||||
set -ex
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
cmake \
|
||||
g++ \
|
||||
ninja-build \
|
||||
pkg-config \
|
||||
python3-pip \
|
||||
$(cat src/dist/appimage/gtk3-dev-deps.txt)
|
||||
# sudo apt-get install -y --no-install-recommends \
|
||||
# python3-pip \
|
||||
# bash \
|
||||
# dash \
|
||||
# squashfs-tools \
|
||||
# zsync \
|
||||
# fakeroot
|
||||
sudo pip install appimage-builder # git+https://github.com/AppImageCrafters/appimage-builder.git
|
||||
- name: Configure
|
||||
run: |
|
||||
cmake \
|
||||
-S src \
|
||||
-B obj \
|
||||
-G Ninja \
|
||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DENABLE_CLI=OFF \
|
||||
-DENABLE_DAEMON=OFF \
|
||||
-DENABLE_GTK=ON \
|
||||
-DENABLE_MAC=OFF \
|
||||
-DENABLE_QT=OFF \
|
||||
-DENABLE_TESTS=OFF \
|
||||
-DENABLE_UTILS=OFF \
|
||||
-DREBUILD_WEB=OFF \
|
||||
-DRUN_CLANG_TIDY=OFF
|
||||
- name: Make
|
||||
run: cmake --build obj --config RelWithDebInfo
|
||||
- name: Install
|
||||
run: DESTDIR=$PWD/AppDir cmake --build obj --config RelWithDebInfo --target install/strip
|
||||
- name: Package
|
||||
run: |
|
||||
VER="$(fgrep -w SHORT_VERSION_STRING obj/libtransmission/version.h | cut -d\" -f2)"
|
||||
REV="$(fgrep -w VCS_REVISION obj/libtransmission/version.h | cut -d\" -f2)"
|
||||
APP_VERSION="${VER}+r${REV}" appimage-builder --recipe src/dist/appimage/gtk3.yml --skip-tests
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: appimage-gtk3
|
||||
path: transmission-*.AppImage
|
||||
|
||||
11
dist/appimage/gtk3-dev-deps.txt
vendored
Normal file
11
dist/appimage/gtk3-dev-deps.txt
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
gettext
|
||||
libcurl4-openssl-dev
|
||||
libdeflate-dev
|
||||
libevent-dev
|
||||
libfmt-dev
|
||||
libglibmm-2.4-dev
|
||||
libgtkmm-3.0-dev
|
||||
libminiupnpc-dev
|
||||
libnatpmp-dev
|
||||
libpsl-dev
|
||||
libssl-dev
|
||||
44
dist/appimage/gtk3.yml
vendored
Normal file
44
dist/appimage/gtk3.yml
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
version: 1
|
||||
|
||||
AppDir:
|
||||
path: ./AppDir
|
||||
|
||||
app_info:
|
||||
id: com.transmission.Transmission
|
||||
name: transmission-gtk3
|
||||
icon: transmission
|
||||
version: !ENV ${APP_VERSION}
|
||||
exec: usr/bin/transmission-gtk
|
||||
|
||||
apt:
|
||||
arch: amd64
|
||||
sources:
|
||||
- sourceline: 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse'
|
||||
key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x871920D1991BC93C'
|
||||
include:
|
||||
- libcurl4
|
||||
- libdeflate0
|
||||
- libevent-2.1-7
|
||||
- libfmt8
|
||||
- libglibmm-2.4-1v5
|
||||
- libgtkmm-3.0-1v5
|
||||
- libminiupnpc17
|
||||
- libnatpmp1
|
||||
- libpsl5
|
||||
- librsvg2-common
|
||||
- libssl3
|
||||
exclude:
|
||||
- adwaita-icon-theme
|
||||
- hicolor-icon-theme
|
||||
- libapparmor1
|
||||
- libcups2
|
||||
|
||||
files:
|
||||
exclude:
|
||||
- usr/bin/dbus-*
|
||||
- usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/printbackends
|
||||
- usr/share/doc
|
||||
- usr/share/man
|
||||
|
||||
AppImage:
|
||||
arch: x86_64
|
||||
Reference in New Issue
Block a user