File tree Expand file tree Collapse file tree 6 files changed +4
-17
lines changed Expand file tree Collapse file tree 6 files changed +4
-17
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,5 @@ dist: xenial
4
4
dotnet : 3.0
5
5
before_script :
6
6
- export PATH="$PATH:/home/travis/.dotnet/tools"
7
- - npm install electron-packager --global
8
7
script :
9
8
- ./buildAll.sh
Original file line number Diff line number Diff line change @@ -72,9 +72,8 @@ public Task<bool> ExecuteAsync()
72
72
ProcessHelper . CmdExecute ( "npm install" , targetFilePath ) ;
73
73
74
74
// run typescript compiler
75
- string tscPath = Path . Combine ( targetFilePath , "node_modules" , ".bin" ) ;
76
75
// ToDo: Not sure if this runs under linux/macos
77
- ProcessHelper . CmdExecute ( @"tsc -p ../../" , tscPath ) ;
76
+ ProcessHelper . CmdExecute ( @"npx tsc -p ../../" , targetFilePath ) ;
78
77
79
78
// search .csproj
80
79
Console . WriteLine ( $ "Search your .csproj to add configure CopyToPublishDirectory to 'Never'") ;
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ public Task<bool> ExecuteAsync()
118
118
ProcessHelper . CmdExecute ( "npm install" , hosthookDir ) ;
119
119
120
120
// ToDo: Not sure if this runs under linux/macos
121
- ProcessHelper . CmdExecute ( @"tsc -p . --sourceMap false" , hosthookDir ) ;
121
+ ProcessHelper . CmdExecute ( @"npx tsc -p . --sourceMap false" , hosthookDir ) ;
122
122
}
123
123
124
124
Console . WriteLine ( "Build Electron Desktop Application..." ) ;
@@ -153,7 +153,7 @@ public Task<bool> ExecuteAsync()
153
153
ProcessHelper . CmdExecute ( $ "node build-helper.js", tempPath ) ;
154
154
155
155
Console . WriteLine ( $ "Package Electron App for Platform { platformInfo . ElectronPackerPlatform } ...") ;
156
- ProcessHelper . CmdExecute ( $ "electron-builder . --config=./bin/electron-builder.json --{ platformInfo . ElectronPackerPlatform } --{ electronArch } -c.electronVersion=5.0.8 { electronParams } ", tempPath ) ;
156
+ ProcessHelper . CmdExecute ( $ "npx electron-builder . --config=./bin/electron-builder.json --{ platformInfo . ElectronPackerPlatform } --{ electronArch } -c.electronVersion=5.0.8 { electronParams } ", tempPath ) ;
157
157
158
158
Console . WriteLine ( "... done" ) ;
159
159
Original file line number Diff line number Diff line change @@ -79,9 +79,8 @@ public Task<bool> ExecuteAsync()
79
79
Console . WriteLine ( "Start npm install for typescript & hosthooks..." ) ;
80
80
ProcessHelper . CmdExecute ( "npm install" , hosthookDir ) ;
81
81
82
- string tscPath = Path . Combine ( tempPath , "node_modules" , ".bin" ) ;
83
82
// ToDo: Not sure if this runs under linux/macos
84
- ProcessHelper . CmdExecute ( @"tsc -p ../../ElectronHostHook" , tscPath ) ;
83
+ ProcessHelper . CmdExecute ( @"npx tsc -p ../../ElectronHostHook" , tempPath ) ;
85
84
}
86
85
87
86
string path = Path . Combine ( tempPath , "node_modules" , ".bin" ) ;
Original file line number Diff line number Diff line change @@ -31,8 +31,6 @@ The current Electron.NET CLI builds Windows/macOS/Linux binaries. Our API uses .
31
31
Also you should have installed:
32
32
33
33
* npm
34
- * npm install -g typescript
35
- * npm install -g electron-builder
36
34
37
35
# Community
38
36
@@ -109,12 +107,6 @@ To start the application make sure you have installed the "[ElectronNET.CLI](htt
109
107
dotnet tool install ElectronNET.CLI -g
110
108
```
111
109
112
- * Make sure you have __ node.js v8.6.0__ and on __ macOS/Linux__ the electron-builder installed!
113
-
114
- ```
115
- sudo npm install electron-builder --global
116
- ```
117
-
118
110
At the first time, you need an Electron.NET project initialization. Type the following command in your ASP.NET Core folder:
119
111
120
112
```
Original file line number Diff line number Diff line change 1
1
version : 1.0.{build}
2
2
image : Visual Studio 2019
3
3
build_script :
4
- - cmd : npm install typescript --global
5
- - cmd : npm install electron-builder --global
6
4
- cmd : buildAll.cmd
7
5
pull_requests :
8
6
do_not_increment_build_number : true
You can’t perform that action at this time.
0 commit comments