package: productName and bumps
This commit is contained in:
		
							parent
							
								
									28060e0551
								
							
						
					
					
						commit
						23a9348619
					
				| 
						 | 
				
			
			@ -12,7 +12,7 @@
 | 
			
		|||
        "electron-store": "^8.0.1"
 | 
			
		||||
      },
 | 
			
		||||
      "devDependencies": {
 | 
			
		||||
        "@types/react": "^17.0.38",
 | 
			
		||||
        "@types/react": "^17.0.39",
 | 
			
		||||
        "@types/react-dom": "^17.0.11",
 | 
			
		||||
        "@vitejs/plugin-react": "^1.1.4",
 | 
			
		||||
        "electron": "^17.0.0",
 | 
			
		||||
| 
						 | 
				
			
			@ -709,9 +709,9 @@
 | 
			
		|||
      "dev": true
 | 
			
		||||
    },
 | 
			
		||||
    "node_modules/@types/react": {
 | 
			
		||||
      "version": "17.0.38",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.38.tgz",
 | 
			
		||||
      "integrity": "sha512-SI92X1IA+FMnP3qM5m4QReluXzhcmovhZnLNm3pyeQlooi02qI7sLiepEYqT678uNiyc25XfCqxREFpy3W7YhQ==",
 | 
			
		||||
      "version": "17.0.39",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.39.tgz",
 | 
			
		||||
      "integrity": "sha512-UVavlfAxDd/AgAacMa60Azl7ygyQNRwC/DsHZmKgNvPmRR5p70AJ5Q9EAmL2NWOJmeV+vVUI4IAP7GZrN8h8Ug==",
 | 
			
		||||
      "dev": true,
 | 
			
		||||
      "dependencies": {
 | 
			
		||||
        "@types/prop-types": "*",
 | 
			
		||||
| 
						 | 
				
			
			@ -5493,9 +5493,9 @@
 | 
			
		|||
      "dev": true
 | 
			
		||||
    },
 | 
			
		||||
    "@types/react": {
 | 
			
		||||
      "version": "17.0.38",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.38.tgz",
 | 
			
		||||
      "integrity": "sha512-SI92X1IA+FMnP3qM5m4QReluXzhcmovhZnLNm3pyeQlooi02qI7sLiepEYqT678uNiyc25XfCqxREFpy3W7YhQ==",
 | 
			
		||||
      "version": "17.0.39",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.39.tgz",
 | 
			
		||||
      "integrity": "sha512-UVavlfAxDd/AgAacMa60Azl7ygyQNRwC/DsHZmKgNvPmRR5p70AJ5Q9EAmL2NWOJmeV+vVUI4IAP7GZrN8h8Ug==",
 | 
			
		||||
      "dev": true,
 | 
			
		||||
      "requires": {
 | 
			
		||||
        "@types/prop-types": "*",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,5 +1,7 @@
 | 
			
		|||
{
 | 
			
		||||
  "name": "vite-react-electron",
 | 
			
		||||
  "productName": "Electron",
 | 
			
		||||
  "private": true,
 | 
			
		||||
  "version": "1.0.0",
 | 
			
		||||
  "description": "Vite React Electron boilerplate.",
 | 
			
		||||
  "author": "草鞋没号 <308487730@qq.com>",
 | 
			
		||||
| 
						 | 
				
			
			@ -16,7 +18,7 @@
 | 
			
		|||
    "electron-store": "^8.0.1"
 | 
			
		||||
  },
 | 
			
		||||
  "devDependencies": {
 | 
			
		||||
    "@types/react": "^17.0.38",
 | 
			
		||||
    "@types/react": "^17.0.39",
 | 
			
		||||
    "@types/react-dom": "^17.0.11",
 | 
			
		||||
    "@vitejs/plugin-react": "^1.1.4",
 | 
			
		||||
    "electron": "^17.0.0",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,10 +1,10 @@
 | 
			
		|||
import os from 'os'
 | 
			
		||||
import { join } from 'path'
 | 
			
		||||
import { app, BrowserWindow, shell } from 'electron'
 | 
			
		||||
import { release } from 'os'
 | 
			
		||||
import { join } from 'path'
 | 
			
		||||
import './samples/electron-store'
 | 
			
		||||
 | 
			
		||||
const isWin7 = os.release().startsWith('6.1')
 | 
			
		||||
if (isWin7) app.disableHardwareAcceleration()
 | 
			
		||||
if (release().startsWith('6.1')) app.disableHardwareAcceleration()
 | 
			
		||||
if (process.platform === 'win32') app.setAppUserModelId(app.getName())
 | 
			
		||||
 | 
			
		||||
if (!app.requestSingleInstanceLock()) {
 | 
			
		||||
  app.quit()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue