Skip to content

Commit 3eef85c

Browse files
Merge pull request #465 from duncanawoods/buildsh_linux_errors
buildAll.sh linux errors
2 parents 3f582d6 + d245720 commit 3eef85c

File tree

1 file changed

+41
-29
lines changed

1 file changed

+41
-29
lines changed

buildAll.sh

Lines changed: 41 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,51 @@
11
dir=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
22
echo "Start building Electron.NET dev stack..."
3+
4+
echo "Build Electron Host"
5+
pushd $dir//ElectronNET.Host
6+
npm install
7+
npm run-script start
8+
popd
9+
310
echo "Restore & Build API"
4-
cd $dir/ElectronNET.API
5-
dotnet restore
6-
dotnet build
7-
cd ..
11+
pushd $dir/ElectronNET.API
12+
dotnet restore
13+
dotnet build
14+
popd
815

916
echo "Restore & Build CLI"
10-
cd $dir/ElectronNET.CLI
11-
dotnet restore
12-
dotnet build
13-
cd ..
17+
pushd $dir/ElectronNET.CLI
18+
dotnet restore
19+
dotnet build
20+
podp
1421

1522
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"
23+
pushd $dir/ElectronNET.WebApp
24+
dotnet restore
25+
dotnet build
26+
27+
echo "Install CLI as dotnet tool"
28+
29+
dotnet tool uninstall ElectronNET.CLI -g
30+
dotnet tool install ElectronNET.CLI -g
31+
32+
echo "Invoke electronize build in WebApp Demo"
33+
echo "/target win (dev-build)"
34+
electronize build /target win
35+
36+
echo "/target linux (dev-build)"
37+
electronize build /target linux
38+
39+
# Cannot public osx/win on windows due to:
40+
# NETSDK1095: Optimizing assemblies for performance is not supported for the selected target platform or architecture.
41+
if [[ "$OSTYPE" != "linux-gnu"* ]]; then
42+
echo "/target osx (dev-build)"
43+
electronize build /target osx
44+
45+
echo "/target custom win7-x86;win (dev-build)"
46+
electronize build /target custom "win7-x86;win"
47+
fi
48+
popd
3749

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

0 commit comments

Comments
 (0)