-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GHI-#13 Implement a JAR artifact build script for Windows OS
- Loading branch information
1 parent
d1e5502
commit c3f9258
Showing
2 changed files
with
52 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
:: +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
:: title JAR Build Batch Script + | ||
:: project nord-intellij-idea-syntax + | ||
:: repository https://github.com/arcticicestudio/nord-intellij-idea-syntax + | ||
:: author Arctic Ice Studio + | ||
:: email [email protected] + | ||
:: copyright Copyright (C) 2017 + | ||
:: +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
@ECHO OFF | ||
SET ICLS_FILE_NAME="nord-intellij-idea-syntax.icls" | ||
SET INTELLIJ_EXPORT_FLAG_FILE_NAME="IntelliJ IDEA Global Settings" | ||
SET VERSION="0.2.0" | ||
|
||
IF NOT EXIST src\%ICLS_FILE_NAME% ( | ||
ECHO Source file not found: src\$ICLS_FILE_NAME | ||
EXIT /B 1 | ||
) | ||
|
||
WHERE jar -version >nul 2>&1 | ||
IF NOT %ERRORLEVEL% EQU 0 ( | ||
ECHO Required tools are missing or not available on the path: jar | ||
EXIT /B 1 | ||
) | ||
|
||
IF EXIST build ECHO Cleaning previous builds | ||
|
||
MKDIR build\colors | ||
COPY /Y NUL build\%INTELLIJ_EXPORT_FLAG_FILE_NAME% >nul 2>&1 | ||
COPY src\%ICLS_FILE_NAME% build\colors >nul 2>&1 | ||
jar cMf build\nord-intellij-idea-syntax-%VERSION%.jar -C build . | ||
|
||
IF %ERRORLEVEL% EQU 0 ( | ||
DEL build\%INTELLIJ_EXPORT_FLAG_FILE_NAME% | ||
RMDIR /S /Q build\colors | ||
ECHO Build successful | ||
EXIT /B 0 | ||
) ELSE ( | ||
ECHO Unexpected error during build | ||
EXIT /B 1 | ||
) |