mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00
chore: rename macos dmg x86_64 to universal and flatpak update script for v3
This commit is contained in:
parent
bedae5768a
commit
8563ef55a6
6
.github/workflows/spotube-release-binary.yml
vendored
6
.github/workflows/spotube-release-binary.yml
vendored
@ -100,7 +100,7 @@ jobs:
|
|||||||
path: dist/
|
path: dist/
|
||||||
|
|
||||||
linux:
|
linux:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: subosito/flutter-action@v2.10.0
|
- uses: subosito/flutter-action@v2.10.0
|
||||||
@ -296,7 +296,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
npm install -g appdmg
|
npm install -g appdmg
|
||||||
mkdir -p build/${{ env.BUILD_VERSION }}
|
mkdir -p build/${{ env.BUILD_VERSION }}
|
||||||
appdmg appdmg.json build/Spotube-macos-x86_64.dmg
|
appdmg appdmg.json build/Spotube-macos-universal.dmg
|
||||||
|
|
||||||
- name: Debug With SSH When fails
|
- name: Debug With SSH When fails
|
||||||
if: ${{ failure() && inputs.debug && inputs.channel == 'nightly' }}
|
if: ${{ failure() && inputs.debug && inputs.channel == 'nightly' }}
|
||||||
@ -308,7 +308,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: Spotube-Release-Binaries
|
name: Spotube-Release-Binaries
|
||||||
path: |
|
path: |
|
||||||
build/Spotube-macos-x86_64.dmg
|
build/Spotube-macos-universal.dmg
|
||||||
|
|
||||||
upload:
|
upload:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -57,7 +57,7 @@ This handy table lists all methods you can use to install Spotube:
|
|||||||
<tr>
|
<tr>
|
||||||
<td>MacOS</td>
|
<td>MacOS</td>
|
||||||
<td>
|
<td>
|
||||||
<a href="https://github.com/KRTirtho/spotube/releases/latest/download/Spotube-macos-x86_64.dmg">
|
<a href="https://github.com/KRTirtho/spotube/releases/latest/download/Spotube-macos-universal.dmg">
|
||||||
<img width="220" alt="MacOS Download" src="https://reachify.io/wp-content/uploads/2018/09/mac-download-button-1.png">
|
<img width="220" alt="MacOS Download" src="https://reachify.io/wp-content/uploads/2018/09/mac-download-button-1.png">
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
|
@ -15,6 +15,7 @@ with open(YAML_FILENAME, mode="r", encoding="utf-8") as input:
|
|||||||
# Requires the 2nd VERSION argument to be passed
|
# Requires the 2nd VERSION argument to be passed
|
||||||
version = sys.argv[1:][0]
|
version = sys.argv[1:][0]
|
||||||
|
|
||||||
|
|
||||||
tar_url = f"https://github.com/{REPO}/releases/download/v{version}/spotube-linux-{version}-x86_64.tar.xz"
|
tar_url = f"https://github.com/{REPO}/releases/download/v{version}/spotube-linux-{version}-x86_64.tar.xz"
|
||||||
tar_sha256 = hashlib.sha256()
|
tar_sha256 = hashlib.sha256()
|
||||||
print(f"Downloading file {tar_url} to generete sha256 sum")
|
print(f"Downloading file {tar_url} to generete sha256 sum")
|
||||||
@ -23,7 +24,7 @@ for chunk in tar.iter_content():
|
|||||||
if chunk:
|
if chunk:
|
||||||
tar_sha256.update(chunk)
|
tar_sha256.update(chunk)
|
||||||
|
|
||||||
tar_source = config["modules"][0]["sources"][0]
|
tar_source = config["modules"][-1]["sources"][0]
|
||||||
tar_source["url"] = tar_url
|
tar_source["url"] = tar_url
|
||||||
tar_source["sha256"] = tar_sha256.hexdigest()
|
tar_source["sha256"] = tar_sha256.hexdigest()
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ const DownloadLinks = Object.freeze({
|
|||||||
[Platform.mac]: [
|
[Platform.mac]: [
|
||||||
{
|
{
|
||||||
name: "dmg",
|
name: "dmg",
|
||||||
url: baseURL + "Spotube-macos-x86_64.dmg",
|
url: baseURL + "Spotube-macos-universal.dmg",
|
||||||
icon: <FaApple />,
|
icon: <FaApple />,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user