fix: file manager incorrectly decoding/encoding when editing files #476
17
.github/workflows/electron.yml
vendored
17
.github/workflows/electron.yml
vendored
@@ -356,7 +356,7 @@ jobs:
|
|||||||
|
|
||||||
build-macos:
|
build-macos:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
if: github.event.inputs.build_type == 'macos' || github.event.inputs.build_type == 'all'
|
if: (github.event.inputs.build_type == 'macos' || github.event.inputs.build_type == 'all') && github.event.inputs.artifact_destination != 'submit'
|
||||||
needs: []
|
needs: []
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
@@ -801,11 +801,20 @@ jobs:
|
|||||||
URL="https://github.com/Termix-SSH/Termix/releases/download/release-$VERSION-tag/$DMG_NAME"
|
URL="https://github.com/Termix-SSH/Termix/releases/download/release-$VERSION-tag/$DMG_NAME"
|
||||||
|
|
||||||
mkdir -p release_asset
|
mkdir -p release_asset
|
||||||
PATH="release_asset/$DMG_NAME"
|
DOWNLOAD_PATH="release_asset/$DMG_NAME"
|
||||||
echo "Downloading DMG from $URL"
|
echo "Downloading DMG from $URL"
|
||||||
curl -L -o "$PATH" "$URL"
|
|
||||||
|
|
||||||
CHECKSUM=$(shasum -a 256 "$PATH" | awk '{print $1}')
|
if command -v curl &> /dev/null; then
|
||||||
|
curl -L -o "$DOWNLOAD_PATH" "$URL"
|
||||||
|
elif command -v wget &> /dev/null; then
|
||||||
|
wget -O "$DOWNLOAD_PATH" "$URL"
|
||||||
|
else
|
||||||
|
echo "Neither curl nor wget is available, installing curl"
|
||||||
|
brew install curl
|
||||||
|
curl -L -o "$DOWNLOAD_PATH" "$URL"
|
||||||
|
fi
|
||||||
|
|
||||||
|
CHECKSUM=$(shasum -a 256 "$DOWNLOAD_PATH" | awk '{print $1}')
|
||||||
|
|
||||||
echo "dmg_name=$DMG_NAME" >> $GITHUB_OUTPUT
|
echo "dmg_name=$DMG_NAME" >> $GITHUB_OUTPUT
|
||||||
echo "checksum=$CHECKSUM" >> $GITHUB_OUTPUT
|
echo "checksum=$CHECKSUM" >> $GITHUB_OUTPUT
|
||||||
|
|||||||
Reference in New Issue
Block a user