Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
mycard
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
syntax_j
mycard
Commits
fa87ef73
Commit
fa87ef73
authored
Nov 24, 2016
by
wudizhanche1000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
旧作wine下运行
parent
24384455
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
4 deletions
+20
-4
app/apps.service.ts
app/apps.service.ts
+6
-2
apps.json
apps.json
+14
-2
No files found.
app/apps.service.ts
View file @
fa87ef73
...
...
@@ -137,10 +137,12 @@ export class AppsService {
}
let
execute
=
path
.
join
(
cwd
,
action
.
execute
);
if
(
action
.
open
)
{
let
openAction
:
Action
;
openAction
=
<
Action
>
action
.
open
.
actions
.
get
(
'
main
'
);
if
(
action
.
open
.
id
==
'
np2fmgen
'
)
{
const
config_file
=
path
.
join
((
<
AppLocal
>
(
<
App
>
action
.
open
).
local
).
path
,
'
np21nt.ini
'
);
let
config
=
await
new
Promise
((
resolve
,
reject
)
=>
{
let
config
=
fs
.
readFile
(
config_file
,
{
encoding
:
'
utf-8
'
},
(
error
,
data
)
=>
{
fs
.
readFile
(
config_file
,
{
encoding
:
'
utf-8
'
},
(
error
,
data
)
=>
{
if
(
error
)
return
reject
(
error
);
resolve
(
ini
.
parse
(
data
));
});
...
...
@@ -156,8 +158,10 @@ export class AppsService {
}
})
});
args
.
push
(
openAction
.
execute
);
args
=
args
.
concat
(
openAction
.
args
);
openAction
=
<
Action
>
(
<
App
>
openAction
.
open
).
actions
.
get
(
"
main
"
);
}
let
openAction
=
<
Action
>
action
.
open
.
actions
.
get
(
'
main
'
);
args
=
args
.
concat
(
openAction
.
args
);
args
.
push
(
action
.
execute
);
execute
=
path
.
join
((
<
AppLocal
>
action
.
open
.
local
).
path
,
openAction
.
execute
);
...
...
apps.json
View file @
fa87ef73
...
...
@@ -2031,6 +2031,12 @@
"name"
:
{
"zh-CN"
:
"np2fmgen"
},
"dependencies"
:
{
"win32"
:
[],
"darwin"
:
[
"wine"
]
},
"description"
:
{
"zh-CN"
:
"np2fmgen"
},
...
...
@@ -2048,6 +2054,12 @@
}
},
"darwin"
:
{
"main"
:
{
"execute"
:
"np21nt.exe"
,
"args"
:
[],
"env"
:
{},
"open"
:
"wine"
}
}
}
},
...
...
@@ -2066,13 +2078,13 @@
"category"
:
"emulator"
,
"actions"
:
{
"win32"
:
{
},
"darwin"
:
{
"main"
:
{
"execute"
:
"bin/wine.bin"
,
"args"
:
[],
"env"
:
""
,
"open"
:
""
"env"
:
""
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment