Merge pull request #164 from bdoherty/windows

build on windows
This commit is contained in:
Tom French 2022-08-30 21:52:16 +01:00 committed by GitHub
commit 89128faf3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

@ -82,10 +82,10 @@
},
"scripts": {
"start": "cross-env PORT=3001 node scripts/start.js",
"start:browser": "./bin/watch-browser",
"start:browser": "cross-env ./bin/watch-browser",
"watch": "cross-env PORT=3001 node scripts/start.js",
"build": "cross-env INLINE_RUNTIME_CHUNK=false node scripts/build.js",
"build:browser": "./bin/build-browser",
"build:browser": "cross-env ./bin/build-browser",
"lint": "eslint src"
},
"browserslist": [

View file

@ -22,6 +22,10 @@ if [ $NODE_ENV == 'development' ]; then
# Make sure to do this before starting the build since watch mode
# will block
WEBPACK_ARGS="$WEBPACK_ARGS --watch"
if [ "$OSTYPE" == "msys" ]; then
# Ensure symlinks are created as native Windows symlinks.
export MSYS=winsymlinks:nativestrict
fi
ln -snf "$ROOT"/../lib-dist/browser ../../desktop-client/public/kcab
fi