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

Commit

Permalink
Completion protocol-launch
Browse files Browse the repository at this point in the history
  • Loading branch information
ShirasawaSama committed May 1, 2020
1 parent 52780ee commit 1dd7a77
Show file tree
Hide file tree
Showing 11 changed files with 272 additions and 229 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Use taobao registry:
set REGISTRY=https://registry.npm.taobao.org/
set dist-url=http://npm.taobao.org/mirrors/atom-shell
set ELECTRON_MIRROR=http://npm.taobao.org/mirrors/electron/
set ELECTRON_CUSTOM_DIR=8.2.4
set ELECTRON_CUSTOM_DIR=8.2.5
```

### Development
Expand Down
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "pure-launcher",
"main": "main.js",
"private": true,
"version": "0.0.3",
"version": "1.0.0",
"author": "Shirasawa",
"description": "An awesome Minecraft Launcher."
}
68 changes: 34 additions & 34 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "pure-launcher",
"private": true,
"version": "0.0.3",
"version": "1.0.0",
"description": "An awesome Minecraft Launcher.",
"main": "dist/src/main.js",
"scripts": {
Expand Down Expand Up @@ -47,7 +47,7 @@
},
"homepage": "https://github.com/Apisium/PureLauncher#readme",
"devDependencies": {
"@actions/core": "^1.2.3",
"@actions/core": "^1.2.4",
"@actions/github": "^2.1.1",
"@babel/core": "^7.9.6",
"@babel/plugin-proposal-optional-chaining": "^7.9.0",
Expand Down Expand Up @@ -80,7 +80,7 @@
"babel-plugin-module-resolver": "^4.0.0",
"cos-nodejs-sdk-v5": "^2.5.20",
"del-cli": "^3.0.0",
"electron": "^8.2.4",
"electron": "^8.2.5",
"electron-builder": "^22.6.0",
"eslint": "^6.8.0",
"eslint-config-standard": "^14.1.1",
Expand All @@ -98,7 +98,7 @@
"less": "^3.11.1",
"locate-java-home": "^1.1.2",
"lodash": "^4.17.15",
"moment": "^2.24.0",
"moment": "^2.25.0",
"p-all": "^3.0.0",
"parcel-plugin-bundle-visualiser": "^1.2.0",
"parcel-plugin-replacer": "file:packages/parcel-plugin-replacer",
Expand Down
2 changes: 1 addition & 1 deletion packages/parcel-plugin-replacer/JSONAsset.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ global.JSONAsset = module.exports = class JSONAsset extends ParcelJSONAsset {
if (!this.ast && this.contents.includes('pure-launcher')) {
try {
const json = JSON.parse(this.contents)
if (json.name === 'pure-launcher' && json.author === 'Shirasawa') {
if (json.author && json.name === 'pure-launcher' && json.author.name === 'Shirasawa') {
return `exports.version='${json.version}'`
}
} catch (e) { console.error(e) }
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const create = () => {
show: false,
webPreferences: { webviewTag: true, nodeIntegration: true, nodeIntegrationInWorker: true }
})
window.loadFile('./dist/index.html')
window.loadFile(join(__dirname, '../index.html'))

launchingWindow = new BrowserWindow({
width: 500,
Expand Down
Loading

0 comments on commit 1dd7a77

Please sign in to comment.