-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added EV windows codesign to release workflow
- Loading branch information
Showing
3 changed files
with
64 additions
and
16 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
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,36 @@ | ||
#!/bin/bash | ||
|
||
# Define the URL of the .tgz file | ||
TAR_URL="https://github.com/shannah/winevcodesign-releases/releases/download/master/winevcodesign-0.0.0-master.tgz" | ||
# Define the name of the downloaded file | ||
TAR_FILE="winevcodesign-0.0.0-master.tgz" | ||
# Define the extraction directory | ||
EXTRACT_DIR="winevcodesign" | ||
|
||
INPUT_FILE="$1" | ||
|
||
OUTPUT_FILE="$2" | ||
|
||
# Download the .tgz file using curl. You can use wget if you prefer. | ||
curl -o "$TAR_FILE" "$TAR_URL" | ||
|
||
# Alternatively, if you prefer wget, uncomment the following line and comment out the curl command above. | ||
# wget -O "$TAR_FILE" "$TAR_URL" | ||
|
||
# Create the extraction directory | ||
mkdir -p "$EXTRACT_DIR" | ||
|
||
# Extract the .tgz file | ||
tar -xvzf "$TAR_FILE" -C "$EXTRACT_DIR" | ||
|
||
# Navigate to the directory containing the JAR file | ||
cd "$EXTRACT_DIR/package/jdeploy-bundle" | ||
|
||
# Run the Java application | ||
$JAVA_HOME/bin/java -jar winevcodesign-1.0-SNAPSHOT.jar \ | ||
sign "$INPUT_FILE" "$OUTPUT_FILE" | ||
|
||
# Clean up by removing the downloaded and extracted files | ||
cd ../../.. | ||
rm -rf "$EXTRACT_DIR" | ||
rm "$TAR_FILE" |