Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Linux/MacOSX build scripts. #175

Merged
merged 2 commits into from
Nov 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions platform-linux/build.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/bash

# Required tools:
# Dotnet SDK 6.0+
# Golang 1.14+
# Node.js 14+
# Dotnet SDK 8.0+
# Golang 1.21+
# Node.js 20+

# call with argument linux-arm64 for ARM architecture

Expand Down Expand Up @@ -114,7 +114,7 @@ npm run build

export NODE_OPTIONS=--max-old-space-size=10000

cd ../../custom-developments/basic_bargraph
cd ../../../custom-developments/basic_bargraph
npm install
npm run build

Expand Down
27 changes: 19 additions & 8 deletions platform-mac/build.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#!/bin/bash

# Required tools:
# Dotnet SDK 6.0+
# Golang 1.14+
# Node.js 14+
# Dotnet SDK 8.0+
# Golang 1.21+
# Node.js 20+

# call with argument osx-arm64 for ARM architecture

ARG1=${1:-osx-x64}

Expand Down Expand Up @@ -33,8 +35,16 @@ cd ../lib60870.netcore
dotnet publish --no-self-contained --runtime $ARG1 -p:PublishReadyToRun=true -c Release -o ../../bin/

cd ../OPC-UA-Client
dotnet restore
dotnet publish --no-self-contained --runtime $ARG1 -p:PublishReadyToRun=true -c Release -o ../../bin/

cd ../opcdaaehda-client-solution-net
dotnet build -f net8.0-windows DaAeHdaNetStandard.sln

cd ../OPC-DA-Client
dotnet restore
dotnet publish --no-self-contained --runtime win-x64 -p:PublishReadyToRun=true -f net8.0-windows -c Release -o ../../bin-wine/ OPC-DA-Client.csproj

export GOBIN=~/json-scada/bin
go env -w GO111MODULE=auto

Expand Down Expand Up @@ -87,6 +97,11 @@ cd ../mongofw
npm install
cd ../mongowr
npm install

cd ../AdminUI
npm install
npm run build

cd ../log-io/ui
npm install
npm run build
Expand All @@ -97,13 +112,9 @@ cd ../inputs/file
npm install
npm run build

cd ../AdminUI
npm install
npm run build

export NODE_OPTIONS=--max-old-space-size=10000

cd ../../custom-developments/basic_bargraph
cd ../../../custom-developments/basic_bargraph
npm install
npm run build

Expand Down