Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Commit 1dd7a77

Browse files
committed
Completion protocol-launch
1 parent 52780ee commit 1dd7a77

File tree

11 files changed

+272
-229
lines changed

11 files changed

+272
-229
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Use taobao registry:
5151
set REGISTRY=https://registry.npm.taobao.org/
5252
set dist-url=http://npm.taobao.org/mirrors/atom-shell
5353
set ELECTRON_MIRROR=http://npm.taobao.org/mirrors/electron/
54-
set ELECTRON_CUSTOM_DIR=8.2.4
54+
set ELECTRON_CUSTOM_DIR=8.2.5
5555
```
5656

5757
### Development

app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "pure-launcher",
33
"main": "main.js",
44
"private": true,
5-
"version": "0.0.3",
5+
"version": "1.0.0",
66
"author": "Shirasawa",
77
"description": "An awesome Minecraft Launcher."
88
}

package-lock.json

Lines changed: 34 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "pure-launcher",
33
"private": true,
4-
"version": "0.0.3",
4+
"version": "1.0.0",
55
"description": "An awesome Minecraft Launcher.",
66
"main": "dist/src/main.js",
77
"scripts": {
@@ -47,7 +47,7 @@
4747
},
4848
"homepage": "https://github.com/Apisium/PureLauncher#readme",
4949
"devDependencies": {
50-
"@actions/core": "^1.2.3",
50+
"@actions/core": "^1.2.4",
5151
"@actions/github": "^2.1.1",
5252
"@babel/core": "^7.9.6",
5353
"@babel/plugin-proposal-optional-chaining": "^7.9.0",
@@ -80,7 +80,7 @@
8080
"babel-plugin-module-resolver": "^4.0.0",
8181
"cos-nodejs-sdk-v5": "^2.5.20",
8282
"del-cli": "^3.0.0",
83-
"electron": "^8.2.4",
83+
"electron": "^8.2.5",
8484
"electron-builder": "^22.6.0",
8585
"eslint": "^6.8.0",
8686
"eslint-config-standard": "^14.1.1",
@@ -98,7 +98,7 @@
9898
"less": "^3.11.1",
9999
"locate-java-home": "^1.1.2",
100100
"lodash": "^4.17.15",
101-
"moment": "^2.24.0",
101+
"moment": "^2.25.0",
102102
"p-all": "^3.0.0",
103103
"parcel-plugin-bundle-visualiser": "^1.2.0",
104104
"parcel-plugin-replacer": "file:packages/parcel-plugin-replacer",

packages/parcel-plugin-replacer/JSONAsset.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ global.JSONAsset = module.exports = class JSONAsset extends ParcelJSONAsset {
55
if (!this.ast && this.contents.includes('pure-launcher')) {
66
try {
77
const json = JSON.parse(this.contents)
8-
if (json.name === 'pure-launcher' && json.author === 'Shirasawa') {
8+
if (json.author && json.name === 'pure-launcher' && json.author.name === 'Shirasawa') {
99
return `exports.version='${json.version}'`
1010
}
1111
} catch (e) { console.error(e) }

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ const create = () => {
7979
show: false,
8080
webPreferences: { webviewTag: true, nodeIntegration: true, nodeIntegrationInWorker: true }
8181
})
82-
window.loadFile('./dist/index.html')
82+
window.loadFile(join(__dirname, '../index.html'))
8383

8484
launchingWindow = new BrowserWindow({
8585
width: 500,

0 commit comments

Comments
 (0)