Skip to content

Commit d61f20d

Browse files
author
duncan
committed
buildall.sh restore original paths using pushd/pops
1 parent 3dea167 commit d61f20d

File tree

1 file changed

+31
-29
lines changed

1 file changed

+31
-29
lines changed

buildAll.sh

Lines changed: 31 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,41 @@
11
dir=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
22
echo "Start building Electron.NET dev stack..."
3+
34
echo "Restore & Build API"
4-
cd $dir/ElectronNET.API
5-
dotnet restore
6-
dotnet build
7-
cd ..
5+
pushd $dir/ElectronNET.API
6+
dotnet restore
7+
dotnet build
8+
popd
89

910
echo "Restore & Build CLI"
10-
cd $dir/ElectronNET.CLI
11-
dotnet restore
12-
dotnet build
13-
cd ..
11+
pushd $dir/ElectronNET.CLI
12+
dotnet restore
13+
dotnet build
14+
podp
1415

1516
echo "Restore & Build WebApp Demo"
16-
cd $dir/ElectronNET.WebApp
17-
dotnet restore
18-
dotnet build
19-
20-
echo "Install CLI as dotnet tool"
21-
22-
dotnet tool uninstall ElectronNET.CLI -g
23-
dotnet tool install ElectronNET.CLI -g
24-
25-
echo "Invoke electronize build in WebApp Demo"
26-
echo "/target win (dev-build)"
27-
electronize build /target win
28-
29-
echo "/target linux (dev-build)"
30-
electronize build /target linux
31-
32-
echo "/target osx (dev-build)"
33-
electronize build /target osx
34-
35-
echo "/target custom win7-x86;win (dev-build)"
36-
electronize build /target custom "win7-x86;win"
17+
pushd $dir/ElectronNET.WebApp
18+
dotnet restore
19+
dotnet build
20+
21+
echo "Install CLI as dotnet tool"
22+
23+
dotnet tool uninstall ElectronNET.CLI -g
24+
dotnet tool install ElectronNET.CLI -g
25+
26+
echo "Invoke electronize build in WebApp Demo"
27+
echo "/target win (dev-build)"
28+
electronize build /target win
29+
30+
echo "/target linux (dev-build)"
31+
electronize build /target linux
32+
33+
echo "/target osx (dev-build)"
34+
electronize build /target osx
35+
36+
echo "/target custom win7-x86;win (dev-build)"
37+
electronize build /target custom "win7-x86;win"
38+
popd
3739

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

0 commit comments

Comments
 (0)