Skip to content

Commit

Permalink
Fix build on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
adamfilipow92 authored and mergify-bot committed Oct 26, 2020
1 parent c733f7c commit 511235b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion flank-scripts/bash/buildFlankScripts.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ SET DIR=%~dp0
SET FLANK_SCRIPTS=%DIR%\..
SET GRADLE_EXECUTABLE_PATH=%FLANK_SCRIPTS%\..

%GRADLE_EXECUTABLE_PATH%\gradlew.bat flank-scripts:clean flank-scripts:assemble flank-scripts:shadowJar
%GRADLE_EXECUTABLE_PATH%\gradlew.bat -p ..\ flank-scripts:clean flank-scripts:assemble flank-scripts:shadowJar
copy %FLANK_SCRIPTS%\build\libs\flankScripts.jar %DIR%\flankScripts.jar
20 changes: 13 additions & 7 deletions test_projects/ops.bat
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
@ECHO OFF
SET ARG=%1
if "%ARG%" == "android" (
CALL ../flank-scripts/bash/flankScripts.bat shell ops android --copy --generate
)

if %ARG%=="android" CALL $DIR/../flank-scripts/bash/flankScripts.bat shell ops android --copy --generate

if %ARG%=="ios" echo "iOS Build on windows not supported
if "%ARG%" == "ios" (
echo iOS Build on windows not supported
)

if %ARG%=="go" CALL $DIR/../flank-scripts/bash/flankScripts.bat shell ops go --copy --generate
if "%ARG%" == "go" (
CALL ../flank-scripts/bash/flankScripts.bat shell ops go
)

if %ARG%=="all" (
CALL $DIR/../flank-scripts/bash/flankScripts.bat shell ops android --copy --generate
CALL $DIR/../flank-scripts/bash/flankScripts.bat shell ops go
if "%ARG%" == "all" (
CALL ../flank-scripts/bash/flankScripts.bat shell ops android --copy --generate
CALL ../flank-scripts/bash/flankScripts.bat shell ops go
)

0 comments on commit 511235b

Please sign in to comment.