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
1 parent
89a237b
commit 5a08986
Showing
11 changed files
with
55 additions
and
57 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
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
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 @@ | ||
function Publish-Folder([String]$keyPrefix, [String]$folder) | ||
{ | ||
Write-S3Object -Region $Region -BucketName $BucketName -KeyPrefix $keyPrefix -Folder $folder -Recurse -PublicReadOnly -Force | ||
} | ||
|
||
#Remove-S3Object -Region "us-east-1" -BucketName "cross-test" -KeyCollection (Get-S3Object -Region "us-east-1" -BucketName "cross-test" -KeyPrefix "tst1/Application Files" | select -ExpandProperty Key) -Force | ||
# exe - удалить (не копировать!) | ||
#Publish-Folder "tst1" ".\..\..\Ext\PartialTrustInstaller\publish" |
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,56 +1,32 @@ | ||
Add-Type -Assembly "System.IO.Compression.FileSystem"; | ||
|
||
Import-Module AWSPowerShell | ||
|
||
$Region = "us-east-1" | ||
#$BucketName = "webmoney-business-tools" | ||
$BucketName = "cross-test" | ||
$BucketName = "webmoney-business-tools" | ||
$BIN_FOLDER = ".\..\WMBusinessTools\bin" | ||
$MSI_FOLDER = ".\..\WMBusinessTools.Setup.WiX\Output" | ||
|
||
function Publish-File([String]$key, [String]$file) | ||
{ | ||
Write-S3Object -Region $Region -BucketName $BucketName -Key $key -File $file -PublicReadOnly -Force | ||
|
||
#$user = New-Object -TypeName Amazon.S3.Model.S3Grantee | ||
#$user.URI = "http://acs.amazonaws.com/groups/global/AllUsers" | ||
|
||
#$grantRead = New-Object -TypeName Amazon.S3.Model.S3Grant | ||
#$grantRead.Grantee = $user | ||
#$grantRead.Permission = [Amazon.S3.S3Permission]::READ | ||
|
||
#$acl = Get-S3Acl -Region $Region -BucketName $BucketName | ||
#$acl.Grants += @($grantRead) | ||
|
||
#Set-S3Acl -Region $Region -BucketName $BucketName -Key $key -Grant $acl.Grants -OwnerId $acl.Owner.Id | ||
} | ||
|
||
function Publish-Folder([String]$keyPrefix, [String]$folder) | ||
{ | ||
Write-S3Object -Region $Region -BucketName $BucketName -KeyPrefix $keyPrefix -Folder $folder -Recurse -PublicReadOnly -Force | ||
$version = [System.Diagnostics.FileVersionInfo]::GetVersionInfo("$BIN_FOLDER\Production\WMBusinessTools.exe").FileVersion | ||
$publicationFolder = "v" + ($version -replace "\.", "-") | ||
|
||
#$user = New-Object -TypeName Amazon.S3.Model.S3Grantee | ||
#$user.URI = "http://acs.amazonaws.com/groups/global/AllUsers" | ||
|
||
#$grantRead = New-Object -TypeName Amazon.S3.Model.S3Grant | ||
#$grantRead.Grantee = $user | ||
#$grantRead.Permission = [Amazon.S3.S3Permission]::READ | ||
# 1. Ïóáëèêóåì ZIP-àðõèâ | ||
Publish-File "dist/$($publicationFolder)/WMBusinessTools-v$($version).zip" "$($BIN_FOLDER)\WMBusinessTools-v$($version).zip" | ||
|
||
#$acl = Get-S3Acl -Region $Region -BucketName $BucketName | ||
#$acl.Grants += @($grantRead) | ||
# 2. Ïóáëèêóåì ôàéë ìàíèôåñòà | ||
Publish-File "dist/Manifest.xml" ".\..\..\Tools\ManifestSigner\Signed\Manifest.xml" | ||
|
||
#Set-S3Acl -Region $Region -BucketName $BucketName -Key $key -Grant $acl.Grants -OwnerId $acl.Owner.Id | ||
} | ||
|
||
Remove-S3Object -Region "us-east-1" -BucketName "cross-test" -KeyCollection (Get-S3Object -Region "us-east-1" -BucketName "cross-test" -KeyPrefix "tst1/Application Files" | select -ExpandProperty Key) -Force | ||
# exe - óäàëèòü (íå êîïèðîâàòü!) | ||
Publish-Folder "tst1" ".\..\..\Ext\PartialTrustInstaller\publish" | ||
|
||
# 1. óáëèêóåì ZIP-àðõèâû | ||
#Publish-File $BucketName "pslfld/WMBusinessTools-v3.1.1.0.zip" ".\..\WMBusinessTools\bin\WMBusinessTools-v3.1.1.0.zip" | ||
|
||
# 2. óáëèêóåì ôàéë ìàíèôåñòà | ||
#Publish-File $BucketName "dist/Manifest.xml" ".\..\..\Tools\ManifestSigner\Signed\Manifest.xml" | ||
|
||
# 3. óáëèêóåì MSI | ||
# 3. Ïóáëèêóåì MSI | ||
Publish-File "dist/$($publicationFolder)/WMBusinessTools.Setup-x32.msi" "$($MSI_FOLDER)\WMBusinessTools.Setup-x32.msi" | ||
Publish-File "dist/$($publicationFolder)/WMBusinessTools.Setup-x64.msi" "$($MSI_FOLDER)\WMBusinessTools.Setup-x64.msi" | ||
|
||
# 4. Invalidating objects | ||
#$callerReference = Get-Date -UFormat "%Y%m%d%H%M%S" | ||
#New-CFInvalidation -DistributionId "E1WLSVLBT9KYI8" -InvalidationBatch_CallerReference $callerReference -Paths_Item "/dist*" -Paths_Quantity 1 | ||
$callerReference = Get-Date -UFormat "%Y%m%d%H%M%S" | ||
New-CFInvalidation -DistributionId "E1WLSVLBT9KYI8" -InvalidationBatch_CallerReference $callerReference -Paths_Item "/dist*" -Paths_Quantity 1 | ||
|
||
pause |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<Manifest> | ||
<Package OSMajorVersion="5" Version="3.0.1.0" ReleaseDate="11/21/2018" Digest="B07F3FF1735A5F8FB9CCD29AC1F55039CF2CD21258F9598203A6DC2A32A8AFEF">http://www.webmoney-business-tools.com/dist/v3-0-1-0/WMBusinessTools-v3.0.1.0.zip</Package> | ||
<Package OSMajorVersion="6" Version="3.1.1.0" ReleaseDate="11/27/2018" Digest="531966C87B9D97C611E0C1685C3597EEC8E176E99EFBD6582E29D66D6AB5FE14">http://www.webmoney-business-tools.com/dist/v3-1-1-0/WMBusinessTools-v3.1.1.0.zip</Package> | ||
<Package OSMajorVersion="6" Version="3.1.3.0" ReleaseDate="11/30/2018" Digest="1D9F8C3390F4B237DF486EB6023953F6F0DC7FE0073F95663D95E21DA64B0615">http://www.webmoney-business-tools.com/dist/v3-1-3-0/WMBusinessTools-v3.1.3.0.zip</Package> | ||
</Manifest> |
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 +1,3 @@ | ||
ManifestSigner Manifest.xml ".\Signed\Manifest.xml" fcb671b0b83566d01aee0e142e9ba5a999208ee4 | ||
pushd "%~dp0" | ||
ManifestSigner Manifest.xml ".\Signed\Manifest.xml" fcb671b0b83566d01aee0e142e9ba5a999208ee4 | ||
popd |
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 +1 @@ | ||
<Manifest><Package OSMajorVersion="5" Version="3.0.1.0" ReleaseDate="11/21/2018" Digest="B07F3FF1735A5F8FB9CCD29AC1F55039CF2CD21258F9598203A6DC2A32A8AFEF">http://www.webmoney-business-tools.com/dist/v3-0-1-0/WMBusinessTools-v3.0.1.0.zip</Package><Package OSMajorVersion="6" Version="3.1.1.0" ReleaseDate="11/21/2018" Digest="77DF67134EB29099BE409C3EB453D3B41879F37A9A00A3EE9FFC52ADCFA27060">http://www.webmoney-business-tools.com/dist/v3-1-1-0/WMBusinessTools-v3.1.1.0.zip</Package><Signature xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /><SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256" /><Reference URI=""><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /></Transforms><DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256" /><DigestValue>i/625F8cYQ77HT/EEzeG9IzoZsXzSOURCEeEqS2LXPU=</DigestValue></Reference></SignedInfo><SignatureValue>gKlJQAY3E6ToLe1sIWLCJcJWOpD9Gly1+lW8+g+i1XAo51LPEFiBwlvHcvQ5c3XCLqI4wyc59cHNYsJ++beNUn6/cIhTw68cYVTriADMSaYjoogamwXXmiQrdsyfL6txkICHgalROKsnHjRRSSGGJu1Sp1J8i/Rv6BLllBOfVZhv4ilmsaXjsmZ8IQH/32lHrtGDA8gMmC8LnCEC4yWyO8mzhvNcYm4IfGFUiCw6Gzpb3GB9lRQbuFpj0ZjKT57eHb6e9JZHk0AzANY/9Nk4KsgRHZSriVhUlT7QBn7Pm0HXs4CPcFnoPAPdUu795KsbkimVAZ5kLsSpcXxnfKvMZA==</SignatureValue></Signature></Manifest> | ||
<Manifest><Package OSMajorVersion="5" Version="3.0.1.0" ReleaseDate="11/21/2018" Digest="B07F3FF1735A5F8FB9CCD29AC1F55039CF2CD21258F9598203A6DC2A32A8AFEF">http://www.webmoney-business-tools.com/dist/v3-0-1-0/WMBusinessTools-v3.0.1.0.zip</Package><Package OSMajorVersion="6" Version="3.1.3.0" ReleaseDate="11/30/2018" Digest="1D9F8C3390F4B237DF486EB6023953F6F0DC7FE0073F95663D95E21DA64B0615">http://www.webmoney-business-tools.com/dist/v3-1-3-0/WMBusinessTools-v3.1.3.0.zip</Package><Signature xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /><SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256" /><Reference URI=""><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /></Transforms><DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256" /><DigestValue>C19xEyImHXV5eT6x+fcBEBs1c4nzeDfuasm5sn/VYpk=</DigestValue></Reference></SignedInfo><SignatureValue>jhZJUrZ0hgJyLs//EvQpTY6mKl8X1lbIhvB4pudRnTRFZ4YnXnU8m9dRFGSUxGuKy2W8WLe3CWyOtuXDcEZ7v8lbMFxM4od4pC6kLTEMP4E7DqDc8+s62Lgta+0+sWPcCZxKFCJe54oFVXezlECYrTGa2xnNzyae1i8LraFZMt/htaGCQn9EG/i/vyQWZNku0K/500sL7KEAzXcyU4d8VyzsPuKSyLIfL5yTwcmEmzuk0Jab6KQwUDbjd1FHs38rvCXQQu3OSQQTD2i2anqfS1pA1rHsQoiJD1MDbQQr61We4MVLXo/OVk4n+OkIEnn5LtfqcxgzxWzOV/ZQTUiYjA==</SignatureValue></Signature></Manifest> |