| 18 | 18 | |
| 19 | 19 | execute() { |
| 20 | $log "Remove distribution directory" |
| 21 | rm -rf "${SCRIPT_DIR}/dist" |
| 22 | |
| 23 | $log "Remove stale binaries" |
| 24 | rm -f "${application_title,,}.jar" |
| 25 | rm -f "${application_title,,}.bin" |
| 26 | rm -f "${application_title}.exe" |
| 27 | |
| 28 | $log "Build Java archive" |
| 29 | gradle clean jar |
| 30 | mv "build/libs/${application_title,,}.jar" . |
| 31 | |
| 20 | 32 | $log "Build Windows installer binary" |
| 21 | 33 | ${BIN_INSTALLER} -o windows |
| 22 | 34 | |
| 23 | 35 | $log "Build Linux installer binary" |
| 24 | 36 | ${BIN_INSTALLER} -o linux |
| 25 | | |
| 26 | | $log "Build Java archive" |
| 27 | | gradle clean jar |
| 28 | | mv "build/libs/${application_title}.jar" . |
| 29 | 37 | } |
| 30 | 38 | |
| ... |
| 39 | 47 | done < "${FILE_PROPERTIES}" |
| 40 | 48 | |
| 41 | | application_title="${application_title,,}" |
| 49 | application_title="${application_title}" |
| 42 | 50 | |
| 43 | 51 | return 1 |