From d28561d6359eb69d5c8d7035d7e2dfc957360a61 Mon Sep 17 00:00:00 2001 From: Mike Cleaver Date: Thu, 27 Apr 2023 13:20:46 +1200 Subject: [PATCH 1/2] added setup.sh and readme updates for working build and run --- README.md | 18 +++++++++++++----- setup.sh | 13 +++++++++++++ 2 files changed, 26 insertions(+), 5 deletions(-) create mode 100644 setup.sh diff --git a/README.md b/README.md index d9f1be3a..13bb6429 100644 --- a/README.md +++ b/README.md @@ -16,17 +16,25 @@ This repo contains the source code to SimBridge Please make sure you have: NodeJS 16 - [Homepage](https://nodejs.org/en/) + - Install the latest node/npm, + - Install [NVM for windows](https://github.com/coreybutler/nvm-windows) or [nvm for *nix](https://github.com/nvm-sh/nvm) + - $ nvm install v16.20.0 + - $ nvm use 16.20.0 + +First time ```bash -# Install all dependencies -$ npm install +$ ./setup.sh +``` -# Build all packages -$ npm run build +then every time to want to run it +```bash -# Start server, to use interfaces you need to build them beforehand $ npm run start +#or if you want to use magic hot reloading upon save +$ npm run start:dev + # Wipe build/ and dist/ folders, build all packages, package to exe and copy dependencies/resources to build folder $ npm run build:exec diff --git a/setup.sh b/setup.sh new file mode 100644 index 00000000..1271d054 --- /dev/null +++ b/setup.sh @@ -0,0 +1,13 @@ + +# Install all dependencies +npm install +#copy dependancies to places +npm run copy:deps + +# move the `build/resources` folder to the project root folder (overwrite everything) +cp -rf ./build/resources ./ +# move the `build/terrain` folder to the project root folder +cp -rf ./build/terrain ./ + +#copy up simconnect dll +cp build/Simconnect.dll ./ From cc7c7d3712de0ca50da93f5276c2ce24240f9b43 Mon Sep 17 00:00:00 2001 From: Mike Cleaver Date: Fri, 15 Sep 2023 19:29:52 +1200 Subject: [PATCH 2/2] moved scripts folder --- README.md | 2 +- setup.sh => scripts/setup.sh | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename setup.sh => scripts/setup.sh (100%) diff --git a/README.md b/README.md index 13bb6429..29104cf9 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ NodeJS 16 - [Homepage](https://nodejs.org/en/) First time ```bash -$ ./setup.sh +$ ./scripts/setup.sh ``` then every time to want to run it diff --git a/setup.sh b/scripts/setup.sh similarity index 100% rename from setup.sh rename to scripts/setup.sh