Skip to content

Commit

Permalink
(secret-maryou-chronicles) Modernized package
Browse files Browse the repository at this point in the history
ref #707
  • Loading branch information
AdmiringWorm committed Apr 28, 2017
1 parent 6cd0def commit f967cad
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 358 deletions.
3 changes: 2 additions & 1 deletion manual/secret-maryo-chronicles/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ Secret Maryo Chronicles is an Open Source two-dimensional platform game with a d

### Note

This package installs the game and the music addon. The uninstaller doesn’t work silently. If Secret Maryo Chronicles is already installed, the installer script doesn’t work silently.
- This package installs the game and the music addon. The uninstaller doesn’t work silently. If Secret Maryo Chronicles is already installed, the installer script doesn’t work silently.
- Development have ceased on this game, so do not expect any bugfixes for it.
314 changes: 7 additions & 307 deletions manual/secret-maryo-chronicles/legal/LICENSE.txt

Large diffs are not rendered by default.

9 changes: 6 additions & 3 deletions manual/secret-maryo-chronicles/legal/VERIFICATION.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@ The embedded software have been downloaded from the listed download
location on <http://www.secretmaryo.org/index.php?page=game_download_windows&sid=?sid=>
and can be verified by doing the following:

1. Download the following <>
1. Download the following
Installer: <http://downloads.sourceforge.net/smclone/SMC_1.9_win32.exe?download>
BG Music : <http://downloads.sourceforge.net/smclone/SMC_Music_5.0_high_win32.exe?download>
2. Get the checksum using one of the following methods:
- Using powershell function 'Get-FileHash'
- Use chocolatey utility 'checksum.exe'
3. The checksums should match the following:

checksum type:
checksum:
checksum type: sha256
checksum installer: 4EA14B8B12403254011486CA8D6578992F30645ED5E8883ADC30D7C207717D2C
checksum bg music : C0603CBDFCEECD2C0AAB316EDAF8F42BE1DBC5BB7F8175EB1C2E062DB0865C5C

The file 'LICENSE.txt' has been obtained from <http://www.secretmaryo.org/index.php?page=disclaimer>
23 changes: 9 additions & 14 deletions manual/secret-maryo-chronicles/secret-maryo-chronicles.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,31 @@
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>secret-maryo-chronicles</id>
<version>1.9</version>
<version>1.9.0.20170428</version>
<packageSourceUrl>https://github.com/Chocolatey/chocolatey-coreteampackages/tree/master/automatic/secret-maryo-chronicles</packageSourceUrl>
<owners>chocolatey</owners>
<title>Secret Maryo Chronicles</title>
<authors>SMC Team</authors>
<projectUrl>http://www.secretmaryo.org/</projectUrl>
<iconUrl>https://cdn.rawgit.com/chocolatey/chocolatey-coreteampackages/378964544b40e9559db6f90285f35f63545d049c/icons/secret-maryo-chronicles.png</iconUrl>
<copyright>What is the copyright</copyright>
<copyright>© SecretMaryo.org</copyright>
<licenseUrl>http://www.secretmaryo.org/index.php?page=disclaimer</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<projectSourceUrl>Software Source Location - is the software FOSS somewhere? Link to it with this</projectSourceUrl>
<docsUrl>At what url are the software docs located?</docsUrl>
<mailingListUrl>What is the link to the mailing list or forum?</mailingListUrl>
<bugTrackerUrl>What is the link to the bug tracker</bugTrackerUrl>
<tags>secret-maryo-chronicles secret maryo chronicles 2d platform game admin</tags>
<projectSourceUrl>https://github.com/FluXy/SMC</projectSourceUrl>
<docsUrl>http://www.secretmaryo.org/wiki/index.php?title=Main_Page</docsUrl>
<mailingListUrl>http://www.secretmaryo.org/phpBB3/index.php?sid=?sid=</mailingListUrl>
<tags>secret-maryo-chronicles secret maryo chronicles 2d platform game admin foss</tags>
<summary>Secret Maryo Chronicles is an Open Source two-dimensional platform game.</summary>
<!-- Do not touch the description here in the nuspec file. Description is imported during update from the Readme.md file -->
<description>
Secret Maryo Chronicles is an Open Source two-dimensional platform game with a design similar to classic computer games. SMC has computer support to a great degree by using an accelerated Open Graphics Library for the best possible graphic design and stock performance.

### Note

This package installs the game and the music addon. The uninstaller doesn’t work silently. If Secret Maryo Chronicles is already installed, the installer script doesn’t work silently.
</description>
<description>Dummy</description>
<releaseNotes>http://www.secretmaryo.org/index.php?page=new_1_9&amp;sid=?sid=</releaseNotes>
<dependencies>
<dependency id="vcredist2008" version="9.0.30729.17" />
<dependency id="chocolatey-core.extension" version="1.3.0" />
</dependencies>
</metadata>
<files>
<file src="legal\**" target="legal" />
<file src="tools\**" target="tools" />
</files>
</package>
18 changes: 13 additions & 5 deletions manual/secret-maryo-chronicles/tools/chocolateyInstall.ps1
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 manual/secret-maryo-chronicles/tools/chocolateyUninstall.ps1

This file was deleted.

8 changes: 8 additions & 0 deletions manual/secret-maryo-chronicles/update.ps1
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

0 comments on commit f967cad

Please sign in to comment.