From 1ee5058f88408ede07aeb2b2192ebb62c90dd700 Mon Sep 17 00:00:00 2001 From: Jake Jarrett Date: Sat, 31 Aug 2019 15:33:04 +1000 Subject: [PATCH] WIP - Electron builder work --- package.json | 3 ++- snap/snapcraft.yaml | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 snap/snapcraft.yaml diff --git a/package.json b/package.json index 31b9f94b..21de14e4 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "sass:prod": "./node_modules/.bin/node-sass --include-path ./app/public/stylesheets/sass --output-style compressed ./app/public/stylesheets/sass/app.scss ./app/public/stylesheets/css/app.css", "sass:dev": "./node_modules/.bin/node-sass --recursive --include-path ./app/public/stylesheets/sass --output-style expanded ./app/public/stylesheets/sass/app.scss ./app/public/stylesheets/css/app.css", "package:osx": "electron-packager ./ Soundnode --platform=darwin --out ./dist/Soundnode --electron-version 1.4.4 --overwrite --icon ./app/soundnode.ico", - "package:linux": "electron-packager ./ Soundnode --platform=linux --out ./dist/Soundnode --electron-version 1.4.4 --overwrite --icon ./app/soundnode.icns", + "package:linux": "electron-builder --config ./snap/snapcraft.yaml -l --x64", "package:win32": "electron-packager ./ Soundnode --platform=win32 --out ./dist/Soundnode --electron-version 1.4.4 --overwrite --icon ./app/soundnode.icns", "package:all": "npm run package:osx && npm run package:linux && npm run package:win32" }, @@ -32,6 +32,7 @@ "babel-preset-stage-0": "^6.22.0", "babel-register": "^6.23.0", "electron": "^6.0.6", + "electron-builder": "^21.2.0", "electron-packager": "^8.5.1", "eslint": "^4.0.0", "eslint-plugin-react": "^7.1.0", diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml new file mode 100644 index 00000000..66db1d74 --- /dev/null +++ b/snap/snapcraft.yaml @@ -0,0 +1,41 @@ +directories: + output: release + buildResources: build +productName: soundnode +appId: en.soundnode-app.soundnode +linux: + maintainer: Jake Jarrett + category: Audio + target: + - deb + - snap + - AppImage +snap: + summary: A SoundCloud client for your desktop + stagePackages: + - libasound2 + - libgconf2-4 + - libnotify4 + - libnspr4 + - libnss3 + - libpcre3 + - libpulse0 + - libxss1 + - libxtst6 + - gtk-update-icon-cache + plugs: + - bluez + - browser-support + - gsettings + - browser-support + - gsettings + - home + - mount-observe + - network + - opengl + - pulseaudio + - unity7 + - x11 + - mpris + category: Audio +electronVersion: 6.0.6