Skip to content

Commit 6c971b9

Browse files
committed
1. added debug window
1 parent 6cf6527 commit 6c971b9

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

contrib/msi/build-msi.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ PKGVERSION=$(sh contrib/msi/msversion.sh --bare)
5353
PKGVERSIONMS=$(echo $PKGVERSION | tr - .)
5454
PKGINDEXFILE=contrib/ui/mesh-ui/index.html
5555
PKGLICENSEFILE=LICENSE.rtf
56+
GUIDEBUG="ON"
5657

5758
#Build winres
5859
go-winres simply --icon riv.ico --file-version $PKGVERSION --file-description "RiV-mesh (c) service, 2021 RIV CHAIN" \
@@ -66,9 +67,13 @@ go-winres simply --file-version $PKGVERSION --file-description "RiV-mesh (c) CLI
6667
cp *.syso cmd/meshctl
6768

6869
# Build Mesh!
69-
[ "${PKGARCH}" == "x64" ] && GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ LDFLAGS="-H windowsgui" ./build
70-
[ "${PKGARCH}" == "x86" ] && GOOS=windows GOARCH=386 CGO_ENABLED=1 CC=i686-w64-mingw32-gcc CXX=i686-w64-mingw32-g++ LDFLAGS="-H windowsgui" ./build
71-
[ "${PKGARCH}" == "arm" ] && GOOS=windows GOARCH=arm CGO_ENABLED=0 ./build
70+
[ "${PKGARCH}" == "x64" && "${GUIDEBUG}" == "OFF"] && GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ LDFLAGS="-H windowsgui" ./build
71+
[ "${PKGARCH}" == "x86" && "${GUIDEBUG}" == "OFF"] && GOOS=windows GOARCH=386 CGO_ENABLED=1 CC=i686-w64-mingw32-gcc CXX=i686-w64-mingw32-g++ LDFLAGS="-H windowsgui" ./build
72+
[ "${PKGARCH}" == "arm" && "${GUIDEBUG}" == "OFF"] && GOOS=windows GOARCH=arm CGO_ENABLED=0 ./build
73+
74+
[ "${PKGARCH}" == "x64" && "${GUIDEBUG}" == "ON"] && GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ ./build
75+
[ "${PKGARCH}" == "x86" && "${GUIDEBUG}" == "ON"] && GOOS=windows GOARCH=386 CGO_ENABLED=1 CC=i686-w64-mingw32-gcc CXX=i686-w64-mingw32-g++ ./build
76+
[ "${PKGARCH}" == "arm" && "${GUIDEBUG}" == "ON"] && GOOS=windows GOARCH=arm CGO_ENABLED=0 ./build
7277
#[ "${PKGARCH}" == "arm64" ] && GOOS=windows GOARCH=arm64 CGO_ENABLED=0 ./build
7378

7479
# Create the postinstall script

0 commit comments

Comments
 (0)