Remove everything related to flatpak
This commit is contained in:
parent
17091425d0
commit
382387d7a6
41
Makefile
41
Makefile
|
@ -3,7 +3,6 @@
|
|||
APPNAME = dev.aunetx.deezer
|
||||
PKGVER = 5.30.570
|
||||
BASE_URL = https://www.deezer.com/desktop/download/artifact/win32/x86/$(PKGVER)
|
||||
GPG_KEY_ID = 5A7D3B06F15FB60238941027EB3A799E7EE716EB
|
||||
VERSION_REGEX = ^v$(PKGVER)-[0-9]{1,}$$
|
||||
|
||||
|
||||
|
@ -42,40 +41,15 @@ prepare: clean install_build_deps
|
|||
@cat package-append.json | tee -a app/package.json
|
||||
|
||||
|
||||
#! FLATPAK
|
||||
|
||||
prepare_flatpak: prepare
|
||||
@echo "Generate yarn sources (without installing them)"
|
||||
@yarn --cwd=app install --mode update-lockfile
|
||||
|
||||
@echo "Package the sources to use them in flatpak-builder offline"
|
||||
@mkdir -p flatpak
|
||||
@./flatpak-node-generator.py yarn app/yarn.lock -o flatpak/generated-sources.json --electron-node-headers --xdg-layout
|
||||
|
||||
build_flatpak: prepare_flatpak
|
||||
@echo "Build the flatpak image"
|
||||
@flatpak-builder --force-clean --state-dir=flatpak/flatpak-builder flatpak/build $(APPNAME).yml
|
||||
|
||||
export_flatpak: prepare_flatpak
|
||||
@echo "Build the flatpak package and export it to the repo"
|
||||
@flatpak-builder --gpg-sign=$(GPG_KEY_ID) --repo=docs --state-dir=flatpak/flatpak-builder --force-clean flatpak/build $(APPNAME).yml
|
||||
@flatpak build-update-repo --generate-static-deltas --gpg-sign=$(GPG_KEY_ID) docs
|
||||
|
||||
bundle_flatpak: build_flatpak
|
||||
@echo "Create a flatpak bundle"
|
||||
@flatpak build-bundle --gpg-sign=$(GPG_KEY_ID) --state-dir=flatpak/flatpak-builder docs deezer.flatpak $(APPNAME)
|
||||
|
||||
install_flatpak: prepare_flatpak
|
||||
@echo "Build and install locally the flatpak image"
|
||||
@flatpak-builder --force-clean --state-dir=flatpak/flatpak-builder --user --install flatpak/build $(APPNAME).yml
|
||||
|
||||
|
||||
#! PACKAGES
|
||||
|
||||
install_deps: prepare
|
||||
@echo "Install yarn dependencies to pack them later"
|
||||
@yarn --cwd=app install
|
||||
|
||||
# the following should be run after `install_deps`
|
||||
# (it is not a dependency to allow to build multiple packages)
|
||||
|
||||
build_deb:
|
||||
@echo "Build deb package"
|
||||
@yarn --cwd=app run build-deb
|
||||
|
@ -92,16 +66,10 @@ build_appimage:
|
|||
@echo "Build AppImage binary"
|
||||
@yarn --cwd=app run build-appimage
|
||||
|
||||
build_7z:
|
||||
@echo "Build 7z archive"
|
||||
@yarn --cwd=app run build-7z
|
||||
|
||||
build_tar.xz:
|
||||
@echo "Build tar.xz archive"
|
||||
@yarn --cwd=app run build-tar.xz
|
||||
|
||||
build_pkgs: install_deps build_deb build_rpm build_snap build_appimage build_7z build_tar.xz
|
||||
|
||||
|
||||
#! UTILS
|
||||
|
||||
|
@ -109,9 +77,6 @@ prepare-release:
|
|||
@echo $(DEEZER_RELEASE) | egrep "$(VERSION_REGEX)" > /dev/null || \
|
||||
(echo "$(DEEZER_RELEASE) is not a correct release version of v$(PKGVER)" && false)
|
||||
|
||||
@cat $(APPNAME).appdata.xml | egrep "$(PKGVER)" > /dev/null || \
|
||||
(echo "$(APPNAME).appdata.xml should contain version $(DEEZER_RELEASE)" && false)
|
||||
|
||||
@desktop-file-validate $(APPNAME).desktop || \
|
||||
(echo "Desktop file validation failed" && false)
|
||||
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
[Flatpak Ref]
|
||||
Name=dev.aunetx.deezer
|
||||
Branch=master
|
||||
Title=dev.aunetx.deezer from deezer-linux
|
||||
Url=https://aunetx.dev/deezer-linux/
|
||||
RuntimeRepo=https://aunetx.dev/deezer-linux/deezer-linux.flatpakrepo
|
||||
IsRuntime=false
|
||||
GPGKey=mQINBF3j88UBEADkQ85uGBBGGpxASKI1/AGLVT1mAZbFcQqG2jWyCaMyA2RkUS3K5y4xUBgOOfKFhkXbwoCrPG7kXn5zu0RU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F88HJ7tapxceVnBPo2DdmHCOu93zhACmkK4/q+6PYLQ6mgrJk0TSsR32Vj7CEOtj8d19EAn3tVOg+apXIsefh9hQ5zy4wSUE/QwhSGN3nz52nd85aHOzlXfLMb+4P5hC7WBO3W+tYg7aXpXSkAjJbbdrz1rGzItjEdqeeDphDqW8GhP08KIKplo+VYXg1vdC01dxq/+wDtbynDLhaQ0dnC+hPAqsPQ==
|
|
@ -1,47 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<component type="desktop">
|
||||
<id>dev.aunetx.deezer</id>
|
||||
<provides>
|
||||
<id>dev.aunetx.deezer.desktop</id>
|
||||
</provides>
|
||||
<launchable type="desktop-id">dev.aunetx.deezer.desktop</launchable>
|
||||
<name>Deezer</name>
|
||||
<developer_name>aunetx</developer_name>
|
||||
<summary>Online music streaming service</summary>
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<project_license>LicenseRef-proprietary=https://www.deezer.com/legal/cgu/</project_license>
|
||||
<url type="homepage">https://www.deezer.com</url>
|
||||
<url type="help">https://github.com/aunetx/deezer-linux</url>
|
||||
<description>
|
||||
<p>An unofficial linux port of the deezer desktop application.
|
||||
Access all of your favorite music, and save them offline for later!</p>
|
||||
</description>
|
||||
<kudos>
|
||||
<kudo>HiDpiIcon</kudo>
|
||||
</kudos>
|
||||
<releases>
|
||||
<release version="5.30.570-6" date="2022-06-22" />
|
||||
<release version="5.30.570-1" date="2022-06-21" />
|
||||
<release version="5.30.520-1" date="2022-02-26" />
|
||||
<release version="5.30.350-1" date="2022-10-23" />
|
||||
<release version="5.30.220-2" date="2022-5-8" />
|
||||
<release version="5.30.220-1" date="2022-5-1" />
|
||||
<release version="5.30.210-1" date="2022-4-13" />
|
||||
<release version="5.30.170-1" date="2022-2-11" />
|
||||
<release version="5.30.160-5" date="2022-2-9" />
|
||||
<release version="5.30.160-4" date="2022-2-1" />
|
||||
<release version="5.30.160-3" date="2022-2-1" />
|
||||
<release version="5.30.160-2" date="2022-2-1" />
|
||||
<release version="5.30.160-1" date="2022-2-1" />
|
||||
<release version="5.30.150-1" date="2022-1-30" />
|
||||
<release version="5.30.130-1" date="2021-12-28" />
|
||||
<release version="5.30.120-1" date="2021-12-9" />
|
||||
<release version="5.30.110-1" date="2021-11-28" />
|
||||
<release version="5.30.100-2" date="2021-11-15" />
|
||||
<release version="5.30.100-1" date="2021-11-15" />
|
||||
<release version="5.30.80" date="2021-10-13" />
|
||||
<release version="5.30.0.beta" date="2021-10-13" />
|
||||
</releases>
|
||||
<content_rating type="oars-1.1" />
|
||||
<update_contact>me_at_aunetx.dev</update_contact>
|
||||
</component>
|
|
@ -1,94 +0,0 @@
|
|||
app-id: dev.aunetx.deezer
|
||||
runtime: org.freedesktop.Platform
|
||||
runtime-version: '22.08'
|
||||
sdk: org.freedesktop.Sdk
|
||||
base: org.electronjs.Electron2.BaseApp
|
||||
base-version: '22.08'
|
||||
sdk-extensions:
|
||||
- org.freedesktop.Sdk.Extension.node18
|
||||
command: run.sh
|
||||
separate-locales: false
|
||||
finish-args:
|
||||
# Basic permissions
|
||||
- --share=ipc
|
||||
- --socket=x11
|
||||
- --socket=wayland
|
||||
- --socket=pulseaudio
|
||||
- --share=network
|
||||
# Allow other instances to see lockfiles
|
||||
- --env=TMPDIR=/var/tmp
|
||||
# DBus permissions
|
||||
- --talk-name=org.freedesktop.Notifications
|
||||
- --talk-name=org.gnome.SettingsDaemon
|
||||
- --talk-name=org.gnome.SessionManager
|
||||
- --own-name=org.mpris.MediaPlayer2.chromium.*
|
||||
# Fs access: music/downloads to send mp3, pictures to change profile picture
|
||||
- --filesystem=xdg-music:ro
|
||||
- --filesystem=xdg-pictures
|
||||
- --filesystem=xdg-download:ro
|
||||
build-options:
|
||||
append-path: /usr/lib/sdk/node18/bin
|
||||
cflags: -O2 -g
|
||||
cxxflags: -O2 -g
|
||||
env:
|
||||
NPM_CONFIG_LOGLEVEL: info
|
||||
modules:
|
||||
- name: deezer
|
||||
buildsystem: simple
|
||||
build-options:
|
||||
env:
|
||||
XDG_CACHE_HOME: /run/build/deezer/flatpak-node/cache
|
||||
npm_config_cache: /run/build/deezer/flatpak-node/npm-cache
|
||||
npm_config_nodedir: /usr/lib/sdk/node18
|
||||
npm_config_offline: 'true'
|
||||
subdir: main
|
||||
sources:
|
||||
# The deezer electron source
|
||||
- type: dir
|
||||
path: app
|
||||
dest: main
|
||||
# The extra resources
|
||||
- type: dir
|
||||
path: extra
|
||||
dest: extra
|
||||
# The application datas
|
||||
- type: file
|
||||
path: dev.aunetx.deezer.appdata.xml
|
||||
dest: main
|
||||
- type: file
|
||||
path: dev.aunetx.deezer.svg
|
||||
dest: main
|
||||
- type: file
|
||||
path: dev.aunetx.deezer.desktop
|
||||
dest: main
|
||||
# The yarn generated sources
|
||||
- flatpak/generated-sources.json
|
||||
# Wrapper to launch the app
|
||||
- type: script
|
||||
dest-filename: run.sh
|
||||
commands:
|
||||
- zypak-wrapper /app/main/deezer-desktop "$@"
|
||||
build-commands:
|
||||
# Have Yarn use the offline mirror.
|
||||
- 'HOME=$PWD yarn config --offline set yarn-offline-mirror $FLATPAK_BUILDER_BUILDDIR/flatpak-node/yarn-mirror'
|
||||
|
||||
# Install dependencies
|
||||
- yarn --offline
|
||||
|
||||
# Build the app; the `dist` script in package.json runs electron-builder
|
||||
- |
|
||||
. ../flatpak-node/electron-builder-arch-args.sh
|
||||
yarn run --offline prepare-flatpak -- $ELECTRON_BUILDER_ARCH_ARGS
|
||||
|
||||
# Bundle app and dependencies
|
||||
- |
|
||||
. ../flatpak-node/electron-builder-arch-args.sh
|
||||
cp -a ../artifacts/${ELECTRON_BUILDER_ARCH_ARGS:2}/linux*unpacked /app/main
|
||||
|
||||
# Install app wrapper
|
||||
- install -Dm755 -t /app/bin/ ../run.sh
|
||||
|
||||
# Install app datas
|
||||
- install -Dm644 dev.aunetx.deezer.appdata.xml /app/share/appdata/dev.aunetx.deezer.appdata.xml
|
||||
- install -Dm644 dev.aunetx.deezer.svg /app/share/icons/hicolor/scalable/apps/dev.aunetx.deezer.svg
|
||||
- install -Dm644 dev.aunetx.deezer.desktop /app/share/applications/dev.aunetx.deezer.desktop
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue