feat: improve json5
This commit is contained in:
		
							parent
							
								
									b0320cab5d
								
							
						
					
					
						commit
						bcb61bcebb
					
				| 
						 | 
					@ -2,36 +2,36 @@
 | 
				
			||||||
 * @see https://www.electron.build/configuration/configuration
 | 
					 * @see https://www.electron.build/configuration/configuration
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  "appId": "YourAppID",
 | 
					  appId: "YourAppID",
 | 
				
			||||||
  "productName": "YourAppName",
 | 
					  productName: "YourAppName",
 | 
				
			||||||
  "copyright": "Copyright © 2022 ${author}",
 | 
					  copyright: "Copyright © 2022 ${author}",
 | 
				
			||||||
  "asar": true,
 | 
					  asar: true,
 | 
				
			||||||
  "directories": {
 | 
					  directories: {
 | 
				
			||||||
    "output": "release/${version}",
 | 
					    output: "release/${version}",
 | 
				
			||||||
    "buildResources": "electron/resources"
 | 
					    buildResources: "electron/resources",
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  "files": ["dist"],
 | 
					  files: ["dist"],
 | 
				
			||||||
  "win": {
 | 
					  win: {
 | 
				
			||||||
    "target": [
 | 
					    target: [
 | 
				
			||||||
      {
 | 
					      {
 | 
				
			||||||
        "target": "nsis",
 | 
					        target: "nsis",
 | 
				
			||||||
        "arch": ["x64"]
 | 
					        arch: ["x64"],
 | 
				
			||||||
      }
 | 
					      },
 | 
				
			||||||
    ],
 | 
					    ],
 | 
				
			||||||
    "artifactName": "${productName}-${version}-Setup.${ext}"
 | 
					    artifactName: "${productName}-${version}-Setup.${ext}",
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  "nsis": {
 | 
					  nsis: {
 | 
				
			||||||
    "oneClick": false,
 | 
					    oneClick: false,
 | 
				
			||||||
    "perMachine": false,
 | 
					    perMachine: false,
 | 
				
			||||||
    "allowToChangeInstallationDirectory": true,
 | 
					    allowToChangeInstallationDirectory: true,
 | 
				
			||||||
    "deleteAppDataOnUninstall": false
 | 
					    deleteAppDataOnUninstall: false,
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  "mac": {
 | 
					  mac: {
 | 
				
			||||||
    "target": ["dmg"],
 | 
					    target: ["dmg"],
 | 
				
			||||||
    "artifactName": "${productName}-${version}-Installer.${ext}"
 | 
					    artifactName: "${productName}-${version}-Installer.${ext}",
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					  linux: {
 | 
				
			||||||
 | 
					    target: ["AppImage"],
 | 
				
			||||||
 | 
					    artifactName: "${productName}-${version}-Installer.${ext}",
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  "linux": {
 | 
					 | 
				
			||||||
    "target": ["AppImage"],
 | 
					 | 
				
			||||||
    "artifactName": "${productName}-${version}-Installer.${ext}"
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
		Loading…
	
		Reference in New Issue