Skip to content

Commit

Permalink
building works
Browse files Browse the repository at this point in the history
  • Loading branch information
mattipunkt committed Jul 27, 2024
1 parent 07b02be commit ce56f69
Show file tree
Hide file tree
Showing 19 changed files with 3,765 additions and 536 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ bower_components
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release


# Dependency directories
node_modules/
jspm_packages/
Expand Down
42 changes: 42 additions & 0 deletions build/electron-builder.base.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
appId: dev.mukkematti.qobuz-linux
electronVersion: 28.1.1
electronDownload:
version: 28.1.1+wvcus
mirror: https://github.com/castlabs/electron-releases/releases/download/v
snap:
plugs:
- default
- screen-inhibit-control
extraResources:
- "themes/**"
linux:
category: AudioVideo
icon: build/icons
target:
- dir
executableName: qobuz-linux
desktop:
Encoding: UTF-8
Name: Qobuz
GenericName: Qobuz
Comment: A simple electron wrapper for Qobuz (with Hi Res Support)
Icon: dev.mukkematti.qobuz_linux
StartupNotify: true
Terminal: false
Type: Application
Categories: Network;Application;AudioVideo;Audio;Video
StartupWMClass: qobuz
X-PulseAudio-Properties: media.role=music
MimeType: x-scheme-handler/qobuz;

mac:
category: public.app-category.entertainment
win:
icon: icon.png
artifactName: "qobuzlinux"
appId: dev.mukkematti.qobuz-linux
executableName: qobuzlinux
protocols:
name: "qobuz"
role: "Viewer"
schemes: ["qobuz"]
4 changes: 4 additions & 0 deletions build/electron-builder.deb.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
extends: ./build/electron-builder.base.yml
linux:
target:
- deb
4 changes: 4 additions & 0 deletions build/electron-builder.pacman.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
extends: ./build/electron-builder.base.yml
linux:
target:
- pacman
4 changes: 4 additions & 0 deletions build/electron-builder.rpm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
extends: ./build/electron-builder.base.yml
linux:
target:
- rpm
4 changes: 4 additions & 0 deletions build/electron-builder.snap.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
extends: ./build/electron-builder.base.yml
linux:
target:
- snap
4 changes: 4 additions & 0 deletions build/electron-builder.unpacked.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
extends: ./build/electron-builder.base.yml
linux:
target:
- dir
12 changes: 12 additions & 0 deletions build/electron-builder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
extends: ./build/electron-builder.base.yml
linux:
target:
- flatpak
- AppImage
- snap
win:
target: msi
icon: icon.png
artifactName: "qobuz-linux"
appId: dev.mukkematti.qobuz-linux
executableName: qobuzlinux
Binary file added build/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/icons/128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/icons/256x256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/icons/512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/icons/64x64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
54 changes: 54 additions & 0 deletions flatpak/dev.mukkematti.qobuz-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
app-id: dev.mukkematti.qobuz-linux
runtime: org.freedesktop.Platform
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
base: org.electronjs.Electron2.BaseApp
base-version: '23.08'
sdk-extensions:
- org.freedesktop.Sdk.Extension.node20
command: run.sh
separate-locales: false
finish-args:
- --share=ipc
- --socket=x11
- --socket=pulseaudio
- --share=network
build-options:
append-path: /usr/lib/sdk/node18/bin
env:
NPM_CONFIG_LOGLEVEL: info
modules:
- name: qobuz-linux
buildsystem: simple
build-options:
env:
XDG_CACHE_HOME: /run/build/qobuz-linux/flatpak-node/cache
npm_config_cache: /run/build/qobuz-linux/flatpak-node/npm-cache
npm_config_offline: 'true'
build-commands:
# Install npm dependencies
- mkdir /run/build/qobuz-linux/main
- npm install --offline
# Build the app; in this example the `dist` script
# in package.json runs electron-builder
- |
. ../flatpak-node/electron-builder-arch-args.sh
npm run dist -- $ELECTRON_BUILDER_ARCH_ARGS --linux --dir
# Bundle app and dependencies
- cp -a dist/linux*unpacked /app/main
# Install app wrapper
- install -Dm755 -t /app/bin/ ../run.sh
subdir: main
sources:
#- type: archive
# url: https://github.com/flathub/electron-sample-app/archive/1.0.1.tar.gz
# sha256: a2feb3f1cf002a2e4e8900f718cc5c54db4ad174e48bfcfbddcd588c7b716d5b
- type: dir
path: ..
dest: main
- generated-sources.json
# Wrapper to launch the app
- type: script
dest-filename: run.sh
commands:
- zypak-wrapper.sh /app/main/electron-sample-app "$@"
Loading

0 comments on commit ce56f69

Please sign in to comment.