meta: change productName in package.json to Renai-dev to avoid conflicts when developing the app on system on which it is installed productively

This commit is contained in:
Xymorot 2020-11-10 21:29:26 +01:00
parent 846a64f993
commit 2cd9531f3b
3 changed files with 7 additions and 4 deletions

View File

@ -39,6 +39,10 @@ const ignoreList = [
const name = packageJson.productName; 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 = { module.exports = {
packagerConfig: { packagerConfig: {
icon: 'resources/icon', icon: 'resources/icon',

View File

@ -1,7 +1,7 @@
{ {
"name": "renai", "name": "renai",
"productName": "Renai", "productName": "Renai-dev",
"version": "1.0.0", "version": "0.0.1",
"description": "Hentai Library Thingy", "description": "Hentai Library Thingy",
"private": true, "private": true,
"license": "SEE LICENSE IN LICENSE.txt", "license": "SEE LICENSE IN LICENSE.txt",

View File

@ -1,6 +1,5 @@
import { app } from 'electron'; import { app } from 'electron';
import path from 'path'; import path from 'path';
import packageJson from '../../../package.json'; 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}`);