-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #98 from ESIPFed/master
sync
- Loading branch information
Showing
23 changed files
with
1,128 additions
and
392 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,66 @@ | ||
#!/bin/bash | ||
|
||
APP_NAME="Geoweaver" | ||
REPO_NAME="Geoweaver" | ||
APP_DIR="${GITHUB_WORKSPACE}/${APP_NAME}.app" | ||
JAR_PATH="${GITHUB_WORKSPACE}/target/geoweaver.jar" | ||
ICON_PATH="${GITHUB_WORKSPACE}/linux-deployment/usr/local/bin/geoweaver.png" | ||
|
||
mkdir -p "${APP_DIR}/Contents/MacOS" | ||
mkdir -p "${APP_DIR}/Contents/Resources" | ||
mkdir -p "${APP_DIR}/Contents/Java" | ||
|
||
cp "${JAR_PATH}" "${APP_DIR}/Contents/Java/" | ||
|
||
EXECUTABLE_SCRIPT="${APP_DIR}/Contents/MacOS/${APP_NAME}" | ||
cat > "${EXECUTABLE_SCRIPT}" <<EOF | ||
#!/bin/bash | ||
DIR=\$(dirname "\$0") | ||
nohup java -jar "\$DIR/../Java/geoweaver.jar" > /dev/null 2>&1 & | ||
sleep 7 | ||
open http://localhost:8070/Geoweaver | ||
EOF | ||
|
||
chmod +x "${EXECUTABLE_SCRIPT}" | ||
|
||
INFO_PLIST="${APP_DIR}/Contents/Info.plist" | ||
cat > "${INFO_PLIST}" <<EOF | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CFBundleExecutable</key> | ||
<string>${APP_NAME}</string> | ||
<key>CFBundleIconFile</key> | ||
<string>AppIcon</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>com.gokulprathin.geoweaver</string> | ||
<key>CFBundleName</key> | ||
<string>${APP_NAME}</string> | ||
<key>CFBundleVersion</key> | ||
<string>1.0.0</string> | ||
<key>CFBundlePackageType</key> | ||
<string>APPL</string> | ||
<key>CFBundleSignature</key> | ||
<string>????</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>1.0</string> | ||
</dict> | ||
</plist> | ||
EOF | ||
|
||
ICONSET="${APP_DIR}/Contents/Resources/${APP_NAME}.iconset" | ||
mkdir "${ICONSET}" | ||
|
||
sips -z 16 16 "${ICON_PATH}" --out "${ICONSET}/icon_16x16.png" | ||
sips -z 32 32 "${ICON_PATH}" --out "${ICONSET}/icon_32x32.png" | ||
sips -z 128 128 "${ICON_PATH}" --out "${ICONSET}/icon_128x128.png" | ||
sips -z 256 256 "${ICON_PATH}" --out "${ICONSET}/icon_256x256.png" | ||
sips -z 512 512 "${ICON_PATH}" --out "${ICONSET}/icon_512x512.png" | ||
cp "${ICON_PATH}" "${ICONSET}/icon_1024x1024.png" # Assuming the original PNG is at least 1024x1024 | ||
|
||
iconutil -c icns "${ICONSET}" --output "${APP_DIR}/Contents/Resources/AppIcon.icns" | ||
rm -rf "${ICONSET}" | ||
echo "${APP_NAME}.app has been created on your Desktop." |
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,14 @@ | ||
package com.gw.database; | ||
|
||
import com.gw.jpa.Checkpoint; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.data.jpa.repository.Query; | ||
|
||
import java.util.List; | ||
import java.util.UUID; | ||
|
||
public interface CheckpointRepository extends JpaRepository<Checkpoint, UUID> { | ||
List<Checkpoint> findByWorkflowId(String workflowId); | ||
|
||
List<Checkpoint> findCheckpointByExecutionId(String executionId); | ||
} |
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
23 changes: 23 additions & 0 deletions
23
src/main/java/com/gw/dto/checkpoint/CheckpointCreateRequest.java
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,23 @@ | ||
package com.gw.dto.checkpoint; | ||
|
||
public class CheckpointCreateRequest { | ||
private String workflowId; | ||
|
||
private String executionId; | ||
|
||
public String getExecutionId() { | ||
return executionId; | ||
} | ||
|
||
public void setExecutionId(String executionId) { | ||
this.executionId = executionId; | ||
} | ||
|
||
public String getWorkflowId() { | ||
return workflowId; | ||
} | ||
|
||
public void setWorkflowId(String workflowId) { | ||
this.workflowId = workflowId; | ||
} | ||
} |
Oops, something went wrong.