Skip to content

Commit 2badfc8

Browse files
committed
Demoアプリビルド用バッチ追加(Windows用)
1 parent e6036e4 commit 2badfc8

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
@echo off
2+
3+
if "%1" == "build" (
4+
if not exist node_modules npm install
5+
if not exist dist npm run build
6+
)
7+
8+
if "%1" == "clean" (
9+
if exist dist rmdir /s /q dist
10+
)

dConnectDevicePlugin/dConnectDeviceSwitchBot/plugin/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ android {
7979
task cleanDemo(type: Exec) {
8080
workingDir '../demo'
8181
if (System.getProperty('os.name').toLowerCase().contains('windows')) {
82-
commandLine 'cmd', '/c', 'build.bat'
82+
commandLine 'cmd', '/c', 'build.bat', 'clean'
8383
} else {
8484
commandLine 'sh', 'build.sh', 'clean'
8585
}
@@ -88,7 +88,7 @@ task cleanDemo(type: Exec) {
8888
task buildDemo(type: Exec) {
8989
workingDir '../demo'
9090
if (System.getProperty('os.name').toLowerCase().contains('windows')) {
91-
commandLine 'cmd', '/c', 'build.bat'
91+
commandLine 'cmd', '/c', 'build.bat', 'build'
9292
} else {
9393
commandLine 'sh', 'build.sh', 'build'
9494
}

0 commit comments

Comments
 (0)