Skip to content

Commit

Permalink
Added some build stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
m0ngr31 committed Jul 1, 2020
1 parent 95f79f4 commit 5841bfb
Show file tree
Hide file tree
Showing 6 changed files with 77 additions and 2 deletions.
19 changes: 19 additions & 0 deletions LICENSE
@@ -0,0 +1,19 @@
The MIT License (MIT)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
42 changes: 42 additions & 0 deletions electron-builder.yml
@@ -0,0 +1,42 @@
productName: Jellyamp
appId: me.ipson.jellyamp
compression: normal

mac:
category: Audio
icon: ./icons/icon.icns
target:
- target: dmg

hardenedRuntime: true
gatekeeperAssess: false

dmg:
# The inner app inside the .dmg is signed and there is some broken logic
# which requires that the DMG itself is not signed.
sign: false

linux:
artifactName: ${name}-${version}-${arch}.${ext}
synopsis: Jellyamp
executableName: Jellyamp
category: Audio
target:
- target: deb
- target: AppImage

nsis:
artifactName: ${name}-${version}-install-${arch}.${ext}

win:
artifactName: ${name}-${version}-portable-${arch}.${ext}
target:
- target: nsis
- target: portable

#- target: portable
icon: ./icons/icon-512x512.png

publish:
provider: github
publishAutoUpdate: always
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion package.json
@@ -1,7 +1,13 @@
{
"name": "jellyamp",
"version": "0.1.0",
"version": "0.8.1",
"private": true,
"description": "Desktop client for listening to music from a Jellyfin server",
"license": "MIT",
"author": {
"name": "Joe Ipson",
"email": "joe@ipson.me"
},
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
Expand Down
5 changes: 5 additions & 0 deletions src/background.js
Expand Up @@ -88,6 +88,11 @@ app.on('ready', async () => {
} catch (e) {
console.error('Vue Devtools failed to install:', e.toString());
}
} else {
// Prevent DevTools from being opened in production
globalShortcut.register('Control+Shift+I', () => {
return false
});
}

createWindow();
Expand Down
3 changes: 3 additions & 0 deletions vue.config.js
Expand Up @@ -9,6 +9,9 @@ module.exports = {
preload: 'src/preload.js',
chainWebpackMainProcess: config => {
config.resolve.alias.set('jsbi', path.join(__dirname, 'node_modules/jsbi/dist/jsbi-cjs.js'));
},
builderOptions: {
publish: ['github']
}
},
},
Expand Down

0 comments on commit 5841bfb

Please sign in to comment.