-
Notifications
You must be signed in to change notification settings - Fork 384
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(secret-maryou-chronicles) Modernized package
ref #707
- Loading branch information
1 parent
6cd0def
commit f967cad
Showing
7 changed files
with
45 additions
and
358 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
18 changes: 13 additions & 5 deletions
18
manual/secret-maryo-chronicles/tools/chocolateyInstall.ps1
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,14 +1,22 @@ | ||
$ErrorActionPreference = 'Stop'; | ||
|
||
$toolsPath = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" | ||
|
||
$packageArgs = @{ | ||
packageName = 'secret-maryo-chronicles' | ||
fileType = 'exe' | ||
url = '' | ||
softwareName = '*' | ||
checksum = '' | ||
checksumType = '' | ||
file = "$toolsPath\SMC_1.9_win32.exe" | ||
softwareName = 'Secret Maryo Chronicles' | ||
silentArgs = '/S' | ||
validExitCodes = @(0) | ||
} | ||
|
||
Install-ChocolateyPackage @packageArgs | ||
Install-ChocolateyInstallPackage @packageArgs | ||
|
||
$packageArgs['file'] = "$toolsPath\SMC_Music_5.0_high_win32.exe" | ||
$packageArgs['softwareName'] = 'Secret Maryo Chronicles Music Pack' | ||
$packageArgs['packageName'] += '-background-music' | ||
|
||
Install-ChocolateyInstallPackage @packageArgs | ||
|
||
Remove-Item -Force -ea 0 "$toolsPath\*.exe","$toolsPath\*.ignore" |
28 changes: 0 additions & 28 deletions
28
manual/secret-maryo-chronicles/tools/chocolateyUninstall.ps1
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" | ||
rm -Force "$PSScriptRoot\tools\*.exe" | ||
Get-WebFile 'https://downloads.sourceforge.net/smclone/SMC_1.9_win32.exe?download' "$PSScriptRoot\tools\SMC_1.9_win32.exe" | ||
Get-WebFile 'https://downloads.sourceforge.net/smclone/SMC_Music_5.0_high_win32.exe?download' "$PSScriptRoot\tools\SMC_Music_5.0_high_win32.exe" | ||
Remove-Module chocolateyInstaller | ||
|
||
. "$PSScriptRoot\..\..\scripts\Set-DescriptionFromReadme.ps1" | ||
Set-DescriptionFromReadme -SkipFirst 1 |