瀏覽代碼

:hammer: Update build scripts

Liang Ding 3 年之前
父節點
當前提交
dc46b478bc
共有 5 個文件被更改,包括 13 次插入12 次删除
  1. 0 4
      build-ui.bat
  2. 0 6
      build-ui.sh
  3. 2 1
      scripts/darwin-build.sh
  4. 5 1
      scripts/linux-build.sh
  5. 6 0
      scripts/win-build.bat

+ 0 - 4
build-ui.bat

@@ -1,4 +0,0 @@
-echo 'Building UI'
-cd app
-call npm install && npm run build
-cd ..

+ 0 - 6
build-ui.sh

@@ -1,6 +0,0 @@
-#!/bin/bash
-
-echo 'Building UI'
-cd app
-npm install && npm run build
-cd ..

+ 2 - 1
darwin-build.sh → scripts/darwin-build.sh

@@ -2,9 +2,10 @@
 
 
 echo 'Building UI'
 echo 'Building UI'
 cd app
 cd app
-npm run build
+npm install && npm run build
 cd ..
 cd ..
 
 
+echo 'Cleaning Builds'
 rm -rf app/build
 rm -rf app/build
 rm -rf app/kernel-darwin
 rm -rf app/kernel-darwin
 rm -rf app/kernel-darwin-arm64
 rm -rf app/kernel-darwin-arm64

+ 5 - 1
linux-build.sh → scripts/linux-build.sh

@@ -1,7 +1,11 @@
 #!/bin/bash
 #!/bin/bash
 
 
-./build-ui.sh
+echo 'Building UI'
+cd app
+npm install && npm run build
+cd ..
 
 
+echo 'Cleaning Builds'
 rm -rf app/build
 rm -rf app/build
 rm -rf app/kernel-linux
 rm -rf app/kernel-linux
 
 

+ 6 - 0
win-build.bat → scripts/win-build.bat

@@ -1,4 +1,10 @@
+echo 'Building UI'
+cd app
+call npm install
+call npm run build
+cd ..
 
 
+echo 'Cleaning Builds'
 del /S /Q /F app\build 1>nul
 del /S /Q /F app\build 1>nul
 del /S /Q /F app\kernel 1>nul
 del /S /Q /F app\kernel 1>nul
 del /S /Q /F app\kernel32 1>nul
 del /S /Q /F app\kernel32 1>nul