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:
parent
846a64f993
commit
2cd9531f3b
|
@ -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',
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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}`);
|
||||
|
|
Loading…
Reference in New Issue