Skip to content

Commit

Permalink
udpate
Browse files Browse the repository at this point in the history
  • Loading branch information
orangekame3 committed Oct 7, 2023
1 parent 487d779 commit bb37a14
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions winget-installer.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
$BASE_URL = "https://raw.githubusercontent.com/orangekame3/winget-pkgs/main/manifests/g/orangekame3/cobra-template"
$FILES = @("orangekame3.cobra-template.yaml", "orangekame3.cobra-template.installer.yaml", "orangekame3.cobra-template.locale.en-US.yaml")

if (-not (Test-Path ./tmp)) {
New-Item -ItemType Directory -Path ./tmp
}

foreach ($file in $FILES) {
Invoke-WebRequest -Uri "$BASE_URL/$file" -OutFile "./tmp/$file"
}

winget install -m ./tmp/orangekame3.cobra-template.yaml


foreach ($file in $FILES) {
Remove-Item "./tmp/$file"
}

0 comments on commit bb37a14

Please sign in to comment.