Don't make all version numbers windows version numbers
This commit is contained in:
@@ -43,14 +43,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
# Read the version from src-tauri/tauri.conf.json
|
# Read the version from src-tauri/tauri.conf.json
|
||||||
VERSION=$(jq -r '.version' src-tauri/tauri.conf.json)
|
VERSION=$(jq -r '.version' src-tauri/tauri.conf.json)
|
||||||
|
|
||||||
# For Windows, modify version if it contains '-alpha' or '-beta'
|
|
||||||
if [[ "$VERSION" == *"-alpha"* ]]; then
|
|
||||||
VERSION="${VERSION/-alpha/-0}"
|
|
||||||
elif [[ "$VERSION" == *"-beta"* ]]; then
|
|
||||||
VERSION="${VERSION/-beta/-1}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Set the version in the environment variable
|
# Set the version in the environment variable
|
||||||
echo "VERSION=$VERSION" >> $GITHUB_ENV
|
echo "VERSION=$VERSION" >> $GITHUB_ENV
|
||||||
if: matrix.platform != 'windows-latest'
|
if: matrix.platform != 'windows-latest'
|
||||||
|
|||||||
Reference in New Issue
Block a user