This repository has been archived by the owner on Jul 16, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Oleksii Holub
authored and
Oleksii Holub
committed
Apr 9, 2019
1 parent
79af7c8
commit 1dca3a5
Showing
1 changed file
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
$ErrorActionPreference = 'Stop'; | ||
$ErrorActionPreference = 'Stop' | ||
$packageName = $env:ChocolateyPackageName | ||
$installDirPath = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" | ||
|
||
# Install package | ||
$packageArgs = @{ | ||
packageName = $env:ChocolateyPackageName | ||
unzipLocation = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" | ||
packageName = $packageName | ||
unzipLocation = $installDirPath | ||
url = 'https://github.com/Tyrrrz/OsuHelper/releases/download/2.0.2/osu.helper.zip' | ||
} | ||
Install-ChocolateyZipPackage @packageArgs | ||
|
||
# Mark the executable as GUI | ||
New-Item (Join-Path unzipLocation "osu!helper.exe.gui") -ItemType File -Force | ||
New-Item (Join-Path $installDirPath "osu!helper.exe.gui") -ItemType File -Force |