Skip to content
This repository was archived by the owner on Mar 29, 2019. It is now read-only.

Commit c4de8ff

Browse files
committed
appveyor: use string[] to accept -platforms win32, winx64
1 parent ad5874a commit c4de8ff

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

powershell/create-mrnzip.ps1

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Param(
22
[Parameter(mandatory=$false)][String]$mariadbVersion = $null,
33
[Parameter(mandatory=$false)][String]$mroongaVersion = $null,
4-
[Parameter(mandatory=$false)][String]$platform = $null
4+
[Parameter(mandatory=$false)][String[]]$platforms = $null
55
)
66

77
[Reflection.Assembly]::LoadWithPartialName("System.IO.Compression.FileSystem")
@@ -14,9 +14,7 @@ if (!$mariadbVersion) {
1414
if (!$mroongaVersion) {
1515
$mroongaVersion = $mroongaVer
1616
}
17-
if ($platform) {
18-
$platforms = $platform -split ","
19-
} else {
17+
if (!$platforms) {
2018
$platforms = "win32", "winx64"
2119
}
2220

powershell/install-mroonga.ps1

+2-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Param(
66
[Parameter(mandatory=$false)][String]$mariadbVersion = $null,
77
[Parameter(mandatory=$false)][String]$mroongaVersion = $null,
8-
[Parameter(mandatory=$false)][String]$platform = $null
8+
[Parameter(mandatory=$false)][String[]]$platforms = $null
99
)
1010

1111
. ".\versions.ps1"
@@ -16,9 +16,7 @@ if (!$mariadbVersion) {
1616
if (!$mroongaVersion) {
1717
$mroongaVersion = $mroongaVer
1818
}
19-
if ($platform) {
20-
$platforms = $platform -split ","
21-
} else {
19+
if (!$platforms) {
2220
$platforms = "win32", "winx64"
2321
}
2422

0 commit comments

Comments
 (0)