Skip to content

Commit 1577146

Browse files
author
duncan
committed
buildall.sh disable win/osx builds on linux
1 parent d61f20d commit 1577146

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

buildAll.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,15 @@ pushd $dir/ElectronNET.WebApp
3030
echo "/target linux (dev-build)"
3131
electronize build /target linux
3232

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"
33+
# Cannot public osx/win on windows due to:
34+
# NETSDK1095: Optimizing assemblies for performance is not supported for the selected target platform or architecture.
35+
if [[ "$OSTYPE" != "linux-gnu"* ]]; then
36+
echo "/target osx (dev-build)"
37+
electronize build /target osx
38+
39+
echo "/target custom win7-x86;win (dev-build)"
40+
electronize build /target custom "win7-x86;win"
41+
fi
3842
popd
3943

4044
# Be aware, that for non-electronnet-dev environments the correct

0 commit comments

Comments
 (0)