-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appimagecraft.yml
57 lines (53 loc) · 2.2 KB
/
appimagecraft.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
version: 1
project:
name: org.musicbrainz.Picard
# version: 2.9.1
version_command: cd "$PROJECT_ROOT/source" && python -c "import picard; print(picard.__version__)"
build:
null:
scripts:
post_build:
- | # Link AppStream metadata
mkdir -p "$BUILD_DIR"/AppDir/usr/share/metainfo/
cd "$BUILD_DIR"/AppDir/usr/share/metainfo/
ln -s ../../conda/share/metainfo/org.musicbrainz.Picard.appdata.xml .
- | # Fetch fpcalc
FPCALC_VERSION=1.5.1
FPCALC_PACKAGE=chromaprint-fpcalc-${FPCALC_VERSION}-linux-x86_64
cd "$BUILD_DIR"
curl -Lo chromaprint-fpcalc.tar.gz "https://github.com/acoustid/chromaprint/releases/download/v${FPCALC_VERSION}/${FPCALC_PACKAGE}.tar.gz"
tar xzf chromaprint-fpcalc.tar.gz
mv ${FPCALC_PACKAGE}/ chromaprint-fpcalc
- | # Build libdiscid
LIBDISCID_VERSION=0.6.4
LIBDISCID_PACKAGE=libdiscid-${LIBDISCID_VERSION}
cd "$BUILD_DIR"
curl -Lo libdiscid.tar.gz "https://github.com/metabrainz/libdiscid/releases/download/v${LIBDISCID_VERSION}/${LIBDISCID_PACKAGE}.tar.gz"
tar xzf libdiscid.tar.gz
mkdir ${LIBDISCID_PACKAGE}/build
cd ${LIBDISCID_PACKAGE}/build
cmake -DCMAKE_INSTALL_PREFIX=/usr/conda ..
make
make DESTDIR="$BUILD_DIR"/AppDir/ install
- | # Prepare extra plugins
mkdir -v "$BUILD_DIR"/appimage-build
cp -v "$PROJECT_ROOT"/appimage/linuxdeploy-plugin-clean.sh "$BUILD_DIR"/appimage-build/
chmod +x "$BUILD_DIR"/appimage-build/linuxdeploy-plugin-clean.sh
appimage:
linuxdeploy:
plugins:
- conda
extra_args: |
--icon-file "$PROJECT_ROOT"/source/resources/images/256x256/org.musicbrainz.Picard.png \
--desktop-file "$PROJECT_ROOT"/source/org.musicbrainz.Picard.desktop \
--custom-apprun "$PROJECT_ROOT"/appimage/AppRun \
--executable "$BUILD_DIR"/chromaprint-fpcalc/fpcalc \
--library /usr/lib/x86_64-linux-gnu/libssl.so.1.1 \
--library /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 \
--plugin clean
environment:
PIP_REQUIREMENTS: .
raw_environment:
- PIP_WORKDIR="$PROJECT_ROOT/source/"
- OUTPUT=MusicBrainz-Picard-daily-"$ARCH".AppImage
- UPD_INFO="gh-releases-zsync|phw|picard-daily|continuous|MusicBrainz-Picard-*$ARCH.AppImage.zsync"