Update to 5.30.580 and add arm packaging

This commit is contained in:
Aurélien Hamy 2023-07-08 17:24:25 +02:00
parent 17091425d0
commit 020fa28805
4 changed files with 87 additions and 59 deletions

View File

@ -19,22 +19,34 @@ jobs:
- name: install_deps
run: make install_deps
- name: build_deb
run: make build_deb
- name: build_rpm
run: make build_rpm
- name: build_snap
run: make build_snap
- name: build_appimage
run: make build_appimage
- name: build_tar.xz
run: make build_tar.xz
- name: build_deb_x64
run: make build_deb_x64
- name: build_rpm_x64
run: make build_rpm_x64
- name: build_snap_x64
run: make build_snap_x64
- name: build_appimage_x64
run: make build_appimage_x64
- name: build_tar.xz_x64
run: make build_tar.xz_x64
- name: build_deb_arm64
run: make build_deb_arm64
- name: build_rpm_arm64
run: make build_rpm_arm64
- name: build_snap_arm64
run: make build_snap_arm64
- name: build_appimage_arm64
run: make build_appimage_arm64
- name: build_tar.xz_arm64
run: make build_tar.xz_arm64
- name: Get the version
run: echo "version=${GITHUB_REF/refs\/tags\//}" >> "$GITHUB_ENV"
- name: Generate sha256
run: echo "$(sha256sum {deezer.flatpakref,artifacts/x64/*.{deb,rpm,snap,AppImage,tar.xz}})" > sha256
run: echo "$(sha256sum {deezer.flatpakref,artifacts/{x64,amd64}/*.{deb,rpm,snap,AppImage,tar.xz}})" > sha256
- name: create release
uses: softprops/action-gh-release@v1
@ -43,10 +55,14 @@ jobs:
body: 'Update to version ${{ env.version }}'
draft: false
files: |
deezer.flatpakref
artifacts/x64/*.deb
artifacts/x64/*.rpm
artifacts/x64/*.snap
artifacts/x64/*.AppImage
artifacts/x64/*.tar.xz
artifacts/arm64/*.deb
artifacts/arm64/*.rpm
artifacts/arm64/*.snap
artifacts/arm64/*.AppImage
artifacts/arm64/*.tar.xz
sha256

View File

@ -13,7 +13,7 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: 18
- name: install_deps
run: make install_deps
- name: build_appimage
@ -21,5 +21,10 @@ jobs:
- uses: actions/upload-artifact@v2
with:
name: deezer-desktop-nightly-build.AppImage
name: deezer-desktop-nightly-build-x64.AppImage
path: artifacts/x64/deezer-desktop-*.AppImage
- uses: actions/upload-artifact@v2
with:
name: deezer-desktop-nightly-build-arm64.AppImage
path: artifacts/arm64/deezer-desktop-*.AppImage

View File

@ -1,7 +1,7 @@
# Maintainer: Aurélien Hamy <aunetx@yandex.com>
APPNAME = dev.aunetx.deezer
PKGVER = 5.30.570
PKGVER = 5.30.580
BASE_URL = https://www.deezer.com/desktop/download/artifact/win32/x86/$(PKGVER)
GPG_KEY_ID = 5A7D3B06F15FB60238941027EB3A799E7EE716EB
VERSION_REGEX = ^v$(PKGVER)-[0-9]{1,}$$
@ -9,7 +9,7 @@ VERSION_REGEX = ^v$(PKGVER)-[0-9]{1,}$$
install_build_deps:
@npm install --engine-strict asar
@npm install prettier
@npm install prettier@2.8.8
prepare: clean install_build_deps
@mkdir -p source
@ -76,31 +76,47 @@ install_deps: prepare
@echo "Install yarn dependencies to pack them later"
@yarn --cwd=app install
build_deb:
@echo "Build deb package"
@yarn --cwd=app run build-deb
build_rpm:
@echo "Build rpm package"
@yarn --cwd=app run build-rpm
build_snap:
@echo "Build snap package"
@yarn --cwd=app run build-snap
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:
build_tar.xz_x64:
@echo "Build tar.xz archive"
@yarn --cwd=app run build-tar.xz
@yarn --cwd=app run build-tar.xz-x64
build_pkgs: install_deps build_deb build_rpm build_snap build_appimage build_7z build_tar.xz
build_deb_x64:
@echo "Build deb package"
@yarn --cwd=app run build-deb-x64
build_rpm_x64:
@echo "Build rpm package"
@yarn --cwd=app run build-rpm-x64
build_snap_x64:
@echo "Build snap package"
@yarn --cwd=app run build-snap-x64
build_appimage_x64:
@echo "Build AppImage binary"
@yarn --cwd=app run build-appimage-x64
build_tar.xz_arm64:
@echo "Build tar.xz archive"
@yarn --cwd=app run build-tar.xz-arm64
build_deb_arm64:
@echo "Build deb package"
@yarn --cwd=app run build-deb-arm64
build_rpm_arm64:
@echo "Build rpm package"
@yarn --cwd=app run build-rpm-arm64
build_snap_arm64:
@echo "Build snap package"
@yarn --cwd=app run build-snap-arm64
build_appimage_arm64:
@echo "Build AppImage binary"
@yarn --cwd=app run build-appimage-arm64
#! UTILS

View File

@ -3,26 +3,17 @@
"start": "yarn run copy-resources && electron .",
"prepare-flatpak": "electron-builder --linux --dir",
"build": "electron-builder --x64 --linux deb rpm snap AppImage 7z tar.gz zip",
"build-deb": "electron-builder --x64 --linux deb",
"build-rpm": "electron-builder --x64 --linux rpm",
"build-snap": "electron-builder --x64 --linux snap",
"build-appimage": "electron-builder --x64 --linux AppImage",
"build-7z": "electron-builder --x64 --linux 7z",
"build-tar.xz": "electron-builder --x64 --linux tar.xz",
"build-tar.xz-x64": "electron-builder --x64 --linux tar.xz",
"build-deb-x64": "electron-builder --x64 --linux deb",
"build-rpm-x64": "electron-builder --x64 --linux rpm",
"build-snap-x64": "electron-builder --x64 --linux snap",
"build-appimage-x64": "electron-builder --x64 --linux AppImage",
"build-arm": "electron-builder --arm64 --linux deb rpm snap AppImage 7z tar.gz zip",
"build-deb-arm": "electron-builder --arm64 --linux deb",
"build-rpm-arm": "electron-builder --arm64 --linux rpm",
"build-snap-arm": "electron-builder --arm64 --linux snap",
"build-appimage-arm": "electron-builder --arm64 --linux AppImage",
"build-7z-arm": "electron-builder --arm64 --linux 7z",
"build-tar.xz-arm": "electron-builder --arm64 --linux tar.xz",
"build-x86": "electron-builder --ia32 --linux deb",
"build-deb-x86": "electron-builder --ia32 --linux deb",
"build-7z-x86": "electron-builder --ia32 --linux 7z",
"build-tar.xz-x86": "electron-builder --ia32 --linux tar.xz"
"build-tar.xz-arm64": "electron-builder --arm64 --linux tar.xz",
"build-deb-arm64": "electron-builder --arm64 --linux deb",
"build-rpm-arm64": "electron-builder --arm64 --linux rpm",
"build-snap-arm64": "electron-builder --arm64 --linux snap",
"build-appimage-arm64": "electron-builder --arm64 --linux AppImage"
},
"devDependencies": {
"electron": "^13.6.9",