Skip to content

Commit

Permalink
Take reviewer advices in
Browse files Browse the repository at this point in the history
  • Loading branch information
deogracia committed Apr 18, 2021
1 parent d83dc35 commit 9683bd7
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 15 deletions.
10 changes: 9 additions & 1 deletion Releases_Notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@

# Published

## 1.6.1-2

* Take review by TheCakeIsNaOH in ^^
* Use Install-ChocolateyZipPackage instead of Get-ChocolateyWebFile and Get-ChocolateyUnzip
* Add `trial` tag
* Remove all comments
* add in nuspec file bugTrackerUrl, licenseUrl & docsUrl tag

## 1.6.1-1

* First try on chocolatey package
* First try on chocolatey package
5 changes: 4 additions & 1 deletion rpgmakermv-free-trial.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@
<title>rpgmakermv-free-trial (Install)</title>
<authors>KADOKAWA CORPORATION,Degica</authors>
<projectUrl>https://www.rpgmakerweb.com/products/rpg-maker-mv</projectUrl>
<bugTrackerUrl>https://www.rpgmakerweb.com/support</bugTrackerUrl>
<licenseUrl>https://www.rpgmakerweb.com/eula</licenseUrl>
<docsUrl>https://forums.rpgmakerweb.com/index.php</docsUrl>
<copyright>2015 KADOKAWA CORPORATION / Yoji Ojima</copyright>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<tags>rpgmakermv-free-trial rpgmaker rpg editor game</tags>
<tags>rpgmakermv free-trial trial rpgmaker rpg editor game</tags>
<summary>RPG MAKER MV lets you create an original RPG for Windows, MacOS, or Linux</summary>
<description>RPG MAKER MV lets you create an original RPG for Windows, MacOS, Linux, Iphone and Android</description>
<releaseNotes>https://github.com/deogracia/chocolatey.rpgmakermv-free-trial/blob/main/Releases_Notes.md</releaseNotes>
Expand Down
25 changes: 12 additions & 13 deletions tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -1,26 +1,25 @@
$ErrorActionPreference = 'Stop'; # stop on all errors
$ErrorActionPreference = 'Stop';
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"

$artefact_name = 'RPGMV_161W_Setup'
$url = "https://dl.degica.com/rpgmakerweb/trial-download/$artefact_name.zip" # download url, HTTPS preferred
$url = "https://dl.degica.com/rpgmakerweb/trial-download/$artefact_name.zip"
$url_checksum = 'BA49006D64E05A69ED9681380F6A544ED01BDD9AE348C3663FE5423C38D31855'
$url_checksum_type = 'sha256'
$my_temp_dir = "$env:temp\$env:ChocolateyPackageName"

Get-ChocolateyWebFile -PackageName $env:ChocolateyPackageName -FileFullPath "$my_temp_dir\$env:ChocolateyPackageName.zip" -Url $url -Checksum $url_checksum -ChecksumType $url_checksum_type
Get-ChocolateyUnzip -PackageName $env:ChocolateyPackageName -FileFullPath "$my_temp_dir\$env:ChocolateyPackageName.zip" -Destination $my_temp_dir
#Get-ChocolateyWebFile -PackageName $env:ChocolateyPackageName -FileFullPath "$my_temp_dir\$env:ChocolateyPackageName.zip" -Url $url -Checksum $url_checksum -ChecksumType $url_checksum_type
#Get-ChocolateyUnzip -PackageName $env:ChocolateyPackageName -FileFullPath "$my_temp_dir\$env:ChocolateyPackageName.zip" -Destination $my_temp_dir

Install-ChocolateyZipPackage -PackageName $env:ChocolateyPackageName -UnzipLocation "$my_temp_dir" -Url $url -Checksum $url_checksum -ChecksumType $url_checksum_type

$packageArgs = @{
packageName = $env:ChocolateyPackageName
url = $url
fileType = 'exe'
file = "$my_temp_dir\$artefact_name\setup.exe"

softwareName = 'rpgmakermv-free-trial*' #part or all of the Display Name as you see it in Programs and Features. It should be enough to be unique

silentArgs = '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' # Inno Setup
validExitCodes= @(0, 3010, 1641) #please insert other valid exit codes here
packageName = $env:ChocolateyPackageName
url = $url
fileType = 'exe'
file = "$my_temp_dir\$artefact_name\setup.exe"
softwareName = 'rpgmakermv-free-trial*'
silentArgs = '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-'
validExitCodes = @(0, 3010, 1641)
}

Install-ChocolateyInstallPackage @packageArgs

0 comments on commit 9683bd7

Please sign in to comment.