Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

revert #357, as fix has been applied upstream #411

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 0 additions & 72 deletions electron-builder.config.js

This file was deleted.

68 changes: 68 additions & 0 deletions electron-builder.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"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}-${version}.${ext}"
},
"mac": {
"target": ["dmg"],
"artifactName": "${productName}-${version}.${ext}"
},
"linux": {
"target": ["AppImage", "deb", "rpm", "pacman", "snap"],
"category": "Audio",
"artifactName": "${productName}-${version}.${ext}",
"desktop": {
"Name": "Dopamine 3",
"Terminal": "false"
}
}
}
22 changes: 0 additions & 22 deletions get-package-information.js

This file was deleted.

11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "Dopamine",
"version": "3.0.0",
"versionSuffix": "preview.20",
"version": "3.0.0-preview.20",
"copyright": "Copyright Digimezzo Ⓒ 2014 - 2023",
"description": "Audio player",
"homepage": "https://github.com/digimezzo/dopamine",
Expand Down Expand Up @@ -31,9 +30,9 @@
"electron:serve-tsc": "tsc -p tsconfig-serve.json",
"electron:serve": "wait-on http-get://localhost:4200/ && npm run electron:serve-tsc && electron . --serve --remote-debugging-port=9222",
"electron:local": "npm run build:prod && electron .",
"electron:linux": "npm run build:prod && electron-builder build --linux --config electron-builder.config.js",
"electron:windows": "npm run build:prod && electron-builder build --windows --config electron-builder.config.js",
"electron:mac": "npm run build:prod && electron-builder build --mac --config electron-builder.config.js",
"electron:linux": "npm run build:prod && electron-builder build --linux",
"electron:windows": "npm run build:prod && electron-builder build --windows",
"electron:mac": "npm run build:prod && electron-builder build --mac",
"version": "conventional-changelog -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md",
"rebuild-sqlite": "./node_modules/.bin/electron-rebuild -f -o better-sqlite3",
"test": "npx jest -w 1 --verbose --noStackTrace",
Expand All @@ -59,7 +58,7 @@
"@types/node": "^14.14.33",
"core-js": "2.6.1",
"electron": "^21.0.0",
"electron-builder": "24.4.0",
"electron-builder": "24.5.2",
"electron-rebuild": "3.2.9",
"electron-reload": "1.5.0",
"jest": "29.6.1",
Expand Down
8 changes: 3 additions & 5 deletions src/app/common/application/product-information.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
const { getName, getFullVersion, getCopyright } = require('../../../../get-package-information.js');

export class ProductInformation {
public static readonly applicationName: string = getName();
public static readonly applicationVersion: string = getFullVersion();
public static readonly applicationCopyright: string = getCopyright();
public static readonly applicationName: string = require('../../../../package.json').name;
public static readonly applicationVersion: string = require('../../../../package.json').version;
public static readonly applicationCopyright: string = require('../../../../package.json').copyright;
public static readonly releasesDownloadUrl: string = 'https://github.com/digimezzo/dopamine/releases/';
}