Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit24b0dcd

Browse files
authored
add an option to build on windows (coderoad#262)
Signed-off-by: argemiront <argemiront@gmail.com>
1 parent065df38 commit24b0dcd

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

‎scripts/build.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,16 @@ tsc -p ./
1414
cd web-app
1515
npm run build
1616
cd ..
17+
1718
# For Windows build: switch the next 2 lines
18-
# cp -R ./web-app/build/ ./
19-
cp -R ./web-app/build/ ./build
19+
if [["$OSTYPE"=="msys" ]];then
20+
echo"linux subsystem on windows selected"
21+
cp -R ./web-app/build/ ./
22+
else
23+
echo"Unix system selected"
24+
cp -R ./web-app/build/ ./build/
25+
fi
26+
2027
node scripts/fixFontPaths.js
2128

2229
echo"Build complete!"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp