Skip to content

Commit

Permalink
Update main.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Mqxx authored Feb 20, 2025
1 parent cfeb762 commit 69417f8
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,12 @@ package_url=$(curl -L $INPUT_MANIFEST_API_URL | jq -r ".versions[] | select(.id
echo "Fetch client.jar URL from \"$package_url\"."
jar_url=$(curl -L $package_url | jq -r ".downloads.client.url")



echo "Fetching client.jar SHA1 hash from \"$package_url\"."
client_jar_sha1=$(curl -L $package_url | jq -r ".downloads.client.sha1")

echo "Downloading client.jar from \"$jar_url\"."
curl -L -o $TEMP_DOWNLOAD_DIR/client.jar $jar_url

# Verify the SHA1 hash of the downloaded file
echo "Verifying SHA1 hash of client.jar."
downloaded_sha1=$(sha1sum "$TEMP_DOWNLOAD_DIR/client.jar" | awk '{print $1}')

Expand All @@ -58,13 +55,6 @@ fi

echo "Saved \"client.jar\" to \"$TEMP_DOWNLOAD_DIR\"."



# echo "Downloading client.jar from \"$jar_url\"."
# curl -L -o $TEMP_DOWNLOAD_DIR/client.jar $jar_url

# echo "Saved \"client.jar\" to \"$TEMP_DOWNLOAD_DIR\"."

echo "::group:: Extract assets from client.jar"
unzip "$TEMP_DOWNLOAD_DIR/client.jar" "pack.png" -d "$INPUT_PATH"
unzip "$TEMP_DOWNLOAD_DIR/client.jar" "assets/*" -d "$INPUT_PATH"
Expand Down Expand Up @@ -126,6 +116,6 @@ done

echo "::endgroup::"

echo "All ZIP files processed."
echo "All files downloaded and processed."

exit 0

0 comments on commit 69417f8

Please sign in to comment.