Skip to content

Commit 1b7dc7c

Browse files
committed
next try
1 parent c9d53d2 commit 1b7dc7c

File tree

3 files changed

+18
-11
lines changed

3 files changed

+18
-11
lines changed

NuGet.config

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
<configuration>
33
<packageSources>
44
<clear />
5-
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
65
<add key="LocalDev" value="artifacts" />
6+
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
77
</packageSources>
8-
98
</configuration>

buildAll.cmd

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,22 @@ dotnet build
1616

1717
echo "Invoke electronize build in WebApp Demo"
1818

19+
echo "Install CLI"
1920

20-
echo "/target xxx (dev-build)"
21-
dotnet "../ElectronNET.CLI/bin/Debug/netcoreapp2.0/dotnet-electronize.dll" build /target custom win7-x86;win32 /dotnet-configuration Debug /electron-arch ia32 /electron-params "--prune=true "
21+
dotnet tool uninstall ElectronNET.CLI -g
22+
dotnet tool install ElectronNET.CLI -g
2223

24+
echo "/target xxx (dev-build)"
25+
electronize build /target custom win7-x86;win32 /dotnet-configuration Debug /electron-arch ia32 /electron-params "--prune=true "
2326

2427
echo "/target win (dev-build)"
25-
dotnet "../ElectronNET.CLI/bin/Debug/netcoreapp2.0/dotnet-electronize.dll" build /target win
28+
electronize build /target win
2629

2730
echo "/target linux (dev-build)"
28-
dotnet "../ElectronNET.CLI/bin/Debug/netcoreapp2.0/dotnet-electronize.dll" build /target linux
31+
electronize build /target linux
2932

3033
echo "/target custom win7-x86;win32 (dev-build)"
31-
dotnet "../ElectronNET.CLI/bin/Debug/netcoreapp2.0/dotnet-electronize.dll" build /target custom win7-x86;win32
34+
electronize build /target custom win7-x86;win32
3235

3336

3437
:: Be aware, that for non-electronnet-dev environments the correct

buildAll.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,23 @@ cd $dir/ElectronNET.WebApp
1717
dotnet restore
1818
dotnet build
1919

20+
echo "Install CLI as dotnet tool"
21+
22+
dotnet tool uninstall ElectronNET.CLI -g
23+
dotnet tool install ElectronNET.CLI -g
24+
2025
echo "Invoke electronize build in WebApp Demo"
2126
echo "/target win (dev-build)"
22-
dotnet "$dir/ElectronNET.CLI/bin/Debug/netcoreapp2.0/dotnet-electronize.dll" build /target win
27+
electronize build /target win
2328

2429
echo "/target linux (dev-build)"
25-
dotnet "$dir/ElectronNET.CLI/bin/Debug/netcoreapp2.0/dotnet-electronize.dll" build /target linux
30+
electronize build /target linux
2631

2732
echo "/target osx (dev-build)"
28-
dotnet "$dir/ElectronNET.CLI/bin/Debug/netcoreapp2.0/dotnet-electronize.dll" build /target osx
33+
electronize build /target osx
2934

3035
echo "/target custom win7-x86;win32 (dev-build)"
31-
dotnet "$dir/ElectronNET.CLI/bin/Debug/netcoreapp2.0/dotnet-electronize.dll" build /target custom "win7-x86;win32"
36+
electronize build /target custom "win7-x86;win32"
3237

3338
# Be aware, that for non-electronnet-dev environments the correct
3439
# invoke command would be dotnet electronize ...

0 commit comments

Comments
 (0)