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;
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',

View File

@ -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",

View File

@ -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}`);