Commit 77a155fd authored by wudizhanche1000's avatar wudizhanche1000

修复WIndows下安装错误

parent dd512ac0
...@@ -39,7 +39,7 @@ export class AppsComponent { ...@@ -39,7 +39,7 @@ export class AppsComponent {
selectApp(id) { selectApp(id) {
this.routingService.app = id; this.routingService.app = id;
this.appsService.createInstllConfig(id); this.appsService.createInstallConfig(id);
} }
......
...@@ -68,7 +68,7 @@ export class AppsService { ...@@ -68,7 +68,7 @@ export class AppsService {
}; };
this._aria2.onDownloadComplete = (response)=> { this._aria2.onDownloadComplete = (response)=> {
console.log(response); console.log(response);
this.aria2.tellStatus(response.gid, (err, res)=>{ this._aria2.tellStatus(response.gid, (err, res)=>{
console.log(res); console.log(res);
let index = this.downloadsInfo.findIndex((v)=>{return v.gid == res.gid}); let index = this.downloadsInfo.findIndex((v)=>{return v.gid == res.gid});
if(index !== -1) { if(index !== -1) {
...@@ -255,7 +255,7 @@ export class AppsService { ...@@ -255,7 +255,7 @@ export class AppsService {
} }
installConfig; installConfig;
createInstllConfig(id) { createInstallConfig(id) {
let app = this.data.find((app)=>{return app.id == id;}); let app = this.data.find((app)=>{return app.id == id;});
let platform = process.platform; let platform = process.platform;
let mods = {}; let mods = {};
...@@ -298,7 +298,7 @@ export class AppsService { ...@@ -298,7 +298,7 @@ export class AppsService {
let tarPath; let tarPath;
switch (process.platform) { switch (process.platform) {
case 'win32': case 'win32':
tarPath = this.path.join(process.execPath, '..', '..', 'tar.exe'); tarPath = this.path.join(process.execPath, '..', '../../../bin/', 'tar.exe');
break; break;
case 'darwin': case 'darwin':
tarPath = 'bsdtar'; // for debug tarPath = 'bsdtar'; // for debug
......
...@@ -15,12 +15,15 @@ ...@@ -15,12 +15,15 @@
"main": { "main": {
"execute": "th07.exe", "execute": "th07.exe",
"args": [], "args": [],
"env": {"LC_ALL": "ja_JP"}, "env": {
"LC_ALL": "ja_JP"
},
"open": "wine" "open": "wine"
} }
} }
}, },
"references": { "references": {
"win32": [],
"darwin": [ "darwin": [
{ {
"id": "th06", "id": "th06",
...@@ -39,7 +42,10 @@ ...@@ -39,7 +42,10 @@
"locales": [ "locales": [
"zh-CN" "zh-CN"
], ],
"download": {"darwin": "http://thief.mycard.moe/metalinks/th07.meta4"}, "download": {
"darwin": "http://thief.mycard.moe/metalinks/th07.meta4",
"win32": "http://thief.mycard.moe/metalinks/th07.meta4"
},
"news": [ "news": [
{ {
"title": "News Title", "title": "News Title",
...@@ -55,7 +61,9 @@ ...@@ -55,7 +61,9 @@
"tags": [ "tags": [
"game" "game"
], ],
"version": {"darwin": "1.06"}, "version": {
"darwin": "1.06"
},
"local": { "local": {
"path": "", "path": "",
"version": "" "version": ""
...@@ -102,7 +110,9 @@ ...@@ -102,7 +110,9 @@
"tags": [ "tags": [
"STG" "STG"
], ],
"version": {"darwin": "1.06"}, "version": {
"darwin": "1.06"
},
"local": { "local": {
"path": "/foo/bar", "path": "/foo/bar",
"version": "10.3" "version": "10.3"
...@@ -133,12 +143,16 @@ ...@@ -133,12 +143,16 @@
"locales": [ "locales": [
"zh-CN" "zh-CN"
], ],
"download": {"darwin": "http://thief.mycard.moe/metalinks/th12.meta4"}, "download": {
"darwin": "http://thief.mycard.moe/metalinks/th12.meta4"
},
"news": [], "news": [],
"tags": [ "tags": [
"STG" "STG"
], ],
"version": {"darwin": "1.06"}, "version": {
"darwin": "1.06"
},
"local": { "local": {
"path": "", "path": "",
"version": "10.3" "version": "10.3"
...@@ -169,12 +183,16 @@ ...@@ -169,12 +183,16 @@
"locales": [ "locales": [
"zh-CN" "zh-CN"
], ],
"download": {"darwin": "http://thief.mycard.moe/metalinks/th11.meta4"}, "download": {
"darwin": "http://thief.mycard.moe/metalinks/th11.meta4"
},
"news": [], "news": [],
"tags": [ "tags": [
"STG" "STG"
], ],
"version": {"darwin": "1.06"}, "version": {
"darwin": "1.06"
},
"local": { "local": {
"path": "/usr/local/bin", "path": "/usr/local/bin",
"version": "1.8" "version": "1.8"
...@@ -205,7 +223,9 @@ ...@@ -205,7 +223,9 @@
"locales": [ "locales": [
"zh-CN" "zh-CN"
], ],
"download": {"darwin": "http://thief.mycard.moe/metalinks/th06.meta4"}, "download": {
"darwin": "http://thief.mycard.moe/metalinks/th06.meta4"
},
"news": [ "news": [
{ {
"title": "News Title", "title": "News Title",
...@@ -221,7 +241,9 @@ ...@@ -221,7 +241,9 @@
"tags": [ "tags": [
"game" "game"
], ],
"version": {"darwin": "1.06"}, "version": {
"darwin": "1.06"
},
"local": { "local": {
"path": "", "path": "",
"version": "" "version": ""
...@@ -268,7 +290,9 @@ ...@@ -268,7 +290,9 @@
"tags": [ "tags": [
"game" "game"
], ],
"version": {"darwin": "1.06"}, "version": {
"darwin": "1.06"
},
"local": { "local": {
"path": "/Applications/Sublime Text.app/Contents/MacOS", "path": "/Applications/Sublime Text.app/Contents/MacOS",
"version": "" "version": ""
...@@ -290,7 +314,9 @@ ...@@ -290,7 +314,9 @@
"main": { "main": {
"execute": "th08.exe", "execute": "th08.exe",
"args": [], "args": [],
"env": {"LC_ALL": "ja_JP"}, "env": {
"LC_ALL": "ja_JP"
},
"open": "wine" "open": "wine"
} }
} }
...@@ -299,7 +325,9 @@ ...@@ -299,7 +325,9 @@
"locales": [ "locales": [
"zh-CN" "zh-CN"
], ],
"download": {"darwin": "http://thief.mycard.moe/metalinks/th08.meta4"}, "download": {
"darwin": "http://thief.mycard.moe/metalinks/th08.meta4"
},
"news": [ "news": [
{ {
"title": "News Title", "title": "News Title",
...@@ -315,7 +343,9 @@ ...@@ -315,7 +343,9 @@
"tags": [ "tags": [
"game" "game"
], ],
"version": {"darwin": "1.06"}, "version": {
"darwin": "1.06"
},
"local": { "local": {
"path": "", "path": "",
"version": "" "version": ""
...@@ -362,7 +392,9 @@ ...@@ -362,7 +392,9 @@
"tags": [ "tags": [
"game" "game"
], ],
"version": {"darwin": "1.06"}, "version": {
"darwin": "1.06"
},
"local": { "local": {
"path": "", "path": "",
"version": "" "version": ""
...@@ -409,7 +441,9 @@ ...@@ -409,7 +441,9 @@
"tags": [ "tags": [
"game" "game"
], ],
"version": {"darwin": "1.06"}, "version": {
"darwin": "1.06"
},
"local": { "local": {
"path": "", "path": "",
"version": "" "version": ""
...@@ -456,7 +490,9 @@ ...@@ -456,7 +490,9 @@
"tags": [ "tags": [
"game" "game"
], ],
"version": {"darwin": "1.06"}, "version": {
"darwin": "1.06"
},
"local": { "local": {
"path": "", "path": "",
"version": "" "version": ""
...@@ -503,7 +539,9 @@ ...@@ -503,7 +539,9 @@
"tags": [ "tags": [
"game" "game"
], ],
"version": {"darwin": "1.06"}, "version": {
"darwin": "1.06"
},
"local": { "local": {
"path": "", "path": "",
"version": "" "version": ""
......
File added
File added
File added
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment