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
5147ecfd
Commit
5147ecfd
authored
Nov 24, 2016
by
wudizhanche1000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix 旧作wine的执行路径
parent
c4b918b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
app/apps.service.ts
app/apps.service.ts
+4
-1
No files found.
app/apps.service.ts
View file @
5147ecfd
...
@@ -140,6 +140,7 @@ export class AppsService {
...
@@ -140,6 +140,7 @@ export class AppsService {
if
(
action
.
open
)
{
if
(
action
.
open
)
{
let
openAction
:
Action
;
let
openAction
:
Action
;
openAction
=
<
Action
>
action
.
open
.
actions
.
get
(
'
main
'
);
openAction
=
<
Action
>
action
.
open
.
actions
.
get
(
'
main
'
);
let
openPath
=
(
<
AppLocal
>
action
.
open
.
local
).
path
;
if
(
action
.
open
.
id
==
'
np2fmgen
'
)
{
if
(
action
.
open
.
id
==
'
np2fmgen
'
)
{
const
config_file
=
path
.
join
((
<
AppLocal
>
(
<
App
>
action
.
open
).
local
).
path
,
'
np21nt.ini
'
);
const
config_file
=
path
.
join
((
<
AppLocal
>
(
<
App
>
action
.
open
).
local
).
path
,
'
np21nt.ini
'
);
let
config
=
await
new
Promise
((
resolve
,
reject
)
=>
{
let
config
=
await
new
Promise
((
resolve
,
reject
)
=>
{
...
@@ -169,11 +170,13 @@ export class AppsService {
...
@@ -169,11 +170,13 @@ export class AppsService {
});
});
args
.
push
(
openAction
.
execute
);
args
.
push
(
openAction
.
execute
);
args
=
args
.
concat
(
openAction
.
args
);
args
=
args
.
concat
(
openAction
.
args
);
let
wine
=
<
App
>
openAction
.
open
;
openPath
=
(
<
AppLocal
>
wine
.
local
).
path
;
openAction
=
<
Action
>
(
<
App
>
openAction
.
open
).
actions
.
get
(
"
main
"
);
openAction
=
<
Action
>
(
<
App
>
openAction
.
open
).
actions
.
get
(
"
main
"
);
}
}
args
=
args
.
concat
(
openAction
.
args
);
args
=
args
.
concat
(
openAction
.
args
);
args
.
push
(
action
.
execute
);
args
.
push
(
action
.
execute
);
execute
=
path
.
join
(
(
<
AppLocal
>
action
.
open
.
local
).
p
ath
,
openAction
.
execute
);
execute
=
path
.
join
(
openP
ath
,
openAction
.
execute
);
env
=
Object
.
assign
(
env
,
openAction
.
env
);
env
=
Object
.
assign
(
env
,
openAction
.
env
);
}
}
args
=
args
.
concat
(
action
.
args
);
args
=
args
.
concat
(
action
.
args
);
...
...
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