-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Trying JS electron-builder config * All product info now comes from package.json
- Loading branch information
Showing
6 changed files
with
107 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
const { getFullVersion } = require('./get-package-information.js'); | ||
|
||
const config = { | ||
appId: "com.digimezzo.dopamine", | ||
productName: "Dopamine", | ||
fileAssociations: [ | ||
{ | ||
name: "MP3 Files", | ||
description: "MP3 Files", | ||
ext: "mp3", | ||
icon: "build/mp3" | ||
}, | ||
{ | ||
name: "FLAC Files", | ||
description: "FLAC Files", | ||
ext: "flac", | ||
icon: "build/flac" | ||
}, | ||
{ | ||
name: "OGG Files", | ||
description: "OGG Files", | ||
ext: "ogg", | ||
icon: "build/ogg" | ||
}, | ||
{ | ||
name: "M4A Files", | ||
description: "M4A Files", | ||
ext: "m4a", | ||
icon: "build/m4a" | ||
}, | ||
{ | ||
name: "OPUS Files", | ||
description: "OPUS Files", | ||
ext: "opus", | ||
icon: "build/opus" | ||
}, | ||
{ | ||
name: "WAV Files", | ||
description: "WAV Files", | ||
ext: "wav", | ||
icon: "build/wav" | ||
} | ||
], | ||
nsis: { | ||
shortcutName: "Dopamine 3", | ||
perMachine: true | ||
}, | ||
directories: { | ||
output: "release" | ||
}, | ||
files: ["**/*"], | ||
extraResources: ["LICENSE"], | ||
win: { | ||
target: ["nsis"], | ||
artifactName: `\${productName}-${getFullVersion()}.\${ext}` | ||
}, | ||
mac: { | ||
target: ["dmg"], | ||
artifactName: `\${productName}-${getFullVersion()}.\${ext}` | ||
}, | ||
linux: { | ||
target: ["pacman"], | ||
category: "Audio", | ||
artifactName: `\${productName}-${getFullVersion()}.\${ext}`, | ||
desktop: { | ||
Name: "Dopamine 3", | ||
Terminal: "false" | ||
} | ||
} | ||
}; | ||
|
||
module.exports = config; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
function getName(){ | ||
return require('./package.json').name; | ||
} | ||
|
||
function getFullVersion() { | ||
const version = require('./package.json').version; | ||
const versionSuffix = require('./package.json').versionSuffix; | ||
|
||
if(versionSuffix === ""){ | ||
return version; | ||
} | ||
|
||
return version + "-" + versionSuffix; | ||
} | ||
|
||
function getCopyright(){ | ||
return require('./package.json').copyright; | ||
} | ||
|
||
module.exports.getName = getName; | ||
module.exports.getFullVersion = getFullVersion; | ||
module.exports.getCopyright = getCopyright; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
const { getName, getFullVersion, getCopyright } = require('../../../../get-package-information.js'); | ||
|
||
export class ProductInformation { | ||
public static readonly applicationName: string = require('../../../../package.json').name; | ||
public static readonly applicationVersion: string = require('../../../../package.json').version; | ||
public static readonly applicationCopyright: string = 'Copyright Digimezzo Ⓒ 2014 - 2022'; | ||
public static readonly applicationName: string = getName(); | ||
public static readonly applicationVersion: string = getFullVersion(); | ||
public static readonly applicationCopyright: string = getCopyright(); | ||
public static readonly releasesDownloadUrl: string = 'https://github.com/digimezzo/dopamine/releases/'; | ||
} |