Merge branch 'Vencord:main' into main
This commit is contained in:
commit
c2476a71eb
3 changed files with 12 additions and 28 deletions
28
.github/workflows/winget-submission.yml
vendored
28
.github/workflows/winget-submission.yml
vendored
|
@ -1,33 +1,17 @@
|
|||
# Based on Microsoft/DevHome Winget CI, modified for use in Vencord/Vesktop.
|
||||
#
|
||||
# Copyright (c) Microsoft Corporation and Contributors
|
||||
# Licensed under the MIT license.
|
||||
|
||||
name: Submit to Winget Community Repo
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
winget:
|
||||
name: Publish winget package
|
||||
runs-on: windows-latest
|
||||
env:
|
||||
WINGET_PAT: ${{ secrets.WINGET_PAT }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Submit package to Winget Community Repo
|
||||
run: |
|
||||
|
||||
$packageId = "Vencord.Vesktop"
|
||||
|
||||
# Fetching latest release from GitHub
|
||||
$github = Invoke-RestMethod -uri "https://api.github.com/repos/vencord/vesktop/releases"
|
||||
$targetRelease = $github | Select-Object -First 1
|
||||
$installerUrl = $targetRelease | Select-Object -ExpandProperty assets -First 1 | Where-Object -Property name -match 'Vesktop-Setup.*?exe' | Select-Object -ExpandProperty browser_download_url
|
||||
$packageVersion = $targetRelease.tag_name.Trim("v")
|
||||
|
||||
# Update package using wingetcreate
|
||||
Invoke-WebRequest https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe
|
||||
.\wingetcreate.exe update $packageId --version $packageVersion --urls "$installerUrl" --submit --token $env:WINGET_PAT
|
||||
uses: vedantmgoyal2009/winget-releaser@52ef3f3028ed79a9606d7678d0a88d295bc0c690 # v2
|
||||
with:
|
||||
identifier: Vencord.Vesktop
|
||||
token: ${{ secrets.WINGET_PAT }}
|
||||
installers-regex: '\.exe$'
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "VencordDesktop",
|
||||
"version": "0.3.1",
|
||||
"version": "0.3.2",
|
||||
"private": true,
|
||||
"description": "",
|
||||
"keywords": [],
|
||||
|
@ -34,7 +34,7 @@
|
|||
"@typescript-eslint/parser": "^6.2.1",
|
||||
"@vencord/types": "^0.1.2",
|
||||
"dotenv": "^16.3.1",
|
||||
"electron": "^26.2.2",
|
||||
"electron": "^25.8.2",
|
||||
"electron-builder": "^24.6.3",
|
||||
"esbuild": "^0.18.17",
|
||||
"eslint": "^8.46.0",
|
||||
|
|
|
@ -35,8 +35,8 @@ devDependencies:
|
|||
specifier: ^16.3.1
|
||||
version: 16.3.1
|
||||
electron:
|
||||
specifier: ^26.2.2
|
||||
version: 26.2.2
|
||||
specifier: ^25.8.2
|
||||
version: 25.8.2
|
||||
electron-builder:
|
||||
specifier: ^24.6.3
|
||||
version: 24.6.3
|
||||
|
@ -1819,8 +1819,8 @@ packages:
|
|||
- supports-color
|
||||
dev: true
|
||||
|
||||
/electron@26.2.2:
|
||||
resolution: {integrity: sha512-Ihb3Zt4XYnHF52DYSq17ySkgFqJV4OT0VnfhUYZASAql7Vembz3VsAq7mB3OALBHXltAW34P8BxTIwTqZaMS3g==}
|
||||
/electron@25.8.2:
|
||||
resolution: {integrity: sha512-AM1ra6b16EQuO1bJtiA8ZiWqqFLLgVfxD56ykiy+EA5C63Hkx8OmIbe+5JAsLiTwRVvBZ4oCAj6wa2qT+iq8ww==}
|
||||
engines: {node: '>= 12.20.55'}
|
||||
hasBin: true
|
||||
requiresBuild: true
|
||||
|
|
Reference in a new issue