Skip to content

Commit

Permalink
fix electron-packager
Browse files Browse the repository at this point in the history
  • Loading branch information
longyuzhou committed May 17, 2020
1 parent 758c8b0 commit 24398b8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.DS_Store
node_modules
/dist
/cutting-stock-win32-x64

# local env files
.env.local
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build": "vue-cli-service build",
"lint": "vue-cli-service lint",
"electron": "cross-env NODE_ENV=desktop npm run build && electron ./dist",
"release": "cross-env NODE_ENV=desktop npm run build && electron-packager ./dist cutting-stock"
"release": "cross-env NODE_ENV=desktop npm run build && electron-packager ./dist cutting-stock --overwrite"
},
"dependencies": {
"core-js": "^3.6.4",
Expand Down
8 changes: 4 additions & 4 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<link rel="icon" href="<%= BASE_URL %>favicon.ico" />
<link rel="stylesheet" href="./bootstrap.min.css" />
<link rel="stylesheet" href="./jquery-confirm.min.css" />
<script src="./jquery-3.4.1.slim.min.js"></script>
<script src="./jquery-confirm.min.js"></script>
<link rel="stylesheet" href="<%= BASE_URL %>bootstrap.min.css" />
<link rel="stylesheet" href="<%= BASE_URL %>jquery-confirm.min.css" />
<script src="<%= BASE_URL %>jquery-3.4.1.slim.min.js"></script>
<script src="<%= BASE_URL %>jquery-confirm.min.js"></script>
<title><%= htmlWebpackPlugin.options.title %></title>
</head>
<body class="h-100">
Expand Down
3 changes: 3 additions & 0 deletions public/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"main": "index.js"
}

0 comments on commit 24398b8

Please sign in to comment.