diff --git a/forge.config.js b/forge.config.js index deb3f9c..2ee8c74 100644 --- a/forge.config.js +++ b/forge.config.js @@ -39,6 +39,10 @@ const ignoreList = [ const name = packageJson.productName; +if(name !== 'Renai') { + throw new TypeError(`The product name "${name}" in package.json is not "Renai"! Change it before building but do not commit it.`) +} + module.exports = { packagerConfig: { icon: 'resources/icon', diff --git a/package.json b/package.json index 43be07e..5ce3c53 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "renai", - "productName": "Renai", - "version": "1.0.0", + "productName": "Renai-dev", + "version": "0.0.1", "description": "Hentai Library Thingy", "private": true, "license": "SEE LICENSE IN LICENSE.txt", diff --git a/src/main/core/app-path.ts b/src/main/core/app-path.ts index c513051..36e0326 100644 --- a/src/main/core/app-path.ts +++ b/src/main/core/app-path.ts @@ -1,6 +1,5 @@ import { app } from 'electron'; import path from 'path'; import packageJson from '../../../package.json'; -import { isDev } from './env'; -export const appPath = path.resolve(app.getPath('userData'), `${packageJson.version}${isDev() ? '-dev' : ''}`); +export const appPath = path.resolve(app.getPath('userData'), `${packageJson.version}`);