This commit is contained in:
Genteure 2018-11-09 09:06:48 +08:00
parent 065aab3f4b
commit 5d42e45493
5 changed files with 9 additions and 31 deletions

View File

@ -1,14 +0,0 @@
if ($env:BILILIVERECORDER_RELEASE.ToLower() -eq "true")
{
Import-Module ./CI/FileCryptography.psm1
$secure_codesignpasswd = ConvertTo-SecureString "$env:codesignpasswd" -AsPlainText -Force
$file = Unprotect-File './CI/rixCloud2Genteure.pfx.AES' -KeyAsPlainText "$env:codesignaes"
$ccert = Import-PfxCertificate -FilePath "$($file.FullName)" -CertStoreLocation Cert:\CurrentUser\My -Password $secure_codesignpasswd
msbuild /t:Publish /verbosity:minimal /p:Configuration=Release /p:CertificateThumbprint="$($ccert.Thumbprint)" /p:ApplicationVersion="$env:p_version" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
$host.SetShouldExit($LastExitCode)
}
else
{
Write-Host "Not a new release, skipping msbuild /t:Publish"
}

View File

@ -16,3 +16,4 @@ $body = @{
}
Invoke-RestMethod -Method Post -Headers $headers -Body $body -Uri "https://api.github.com/repos/Bililive/rec.danmuji.org/pulls" -ErrorAction:SilentlyContinue | Out-Null
Push-AppveyorArtifact "..\site\Recorder\Setup.exe" -FileName "Setup.exe" -DeploymentName "github"

View File

@ -1,10 +0,0 @@
if ($env:APPVEYOR)
{
Rename-Item .\BililiveRecorder.WPF\bin\Release\app.publish\setup.exe BililiveRecorder.exe
git clone --quiet --depth 1 https://github.com/Bililive/soft.danmuji.org.git C:\projects\site
Get-ChildItem -Path .\BililiveRecorder.WPF\bin\Release\app.publish | Copy-Item -Destination C:\projects\site\BililiveRecorder -Recurse -Container -Force
git --git-dir=C:\projects\site\.git\ --work-tree=C:\projects\site\ add -A
git --git-dir=C:\projects\site\.git\ --work-tree=C:\projects\site\ commit --quiet -m "BililiveRecorder $env:p_version"
git --git-dir=C:\projects\site\.git\ --work-tree=C:\projects\site\ push --quiet
}

View File

@ -1,3 +0,0 @@
git tag "v$env:p_version"
git push origin dev:master --quiet
git push origin "v$env:p_version" --quiet

View File

@ -39,8 +39,6 @@ before_build:
build_script:
- ps: msbuild /nologo /v:q /p:Configuration="$env:CONFIGURATION" /p:SquirrelBuildTarget="$env:DEPLOY_SITE_GIT\Recorder"
on_success:
- ps: ./CI/appveyor_on_success.ps1
for:
@ -51,9 +49,15 @@ for:
configuration: Release
artifacts:
before_deploy:
- ps: ./CI/deploy.ps1
- ps: ./CI/appveyor_deploy.ps1
deploy:
#provider:
provider: GitHub
release: v$(APPVEYOR_BUILD_VERSION)
description: '# Fill out this before publish'
auth_token:
secure: 3n2WMbrqWb0nmy2LBmu7w6dJltiHHC4LCoNuIKBh7fKV0xfxCwVGOxbTpunLI2pe
artifact: github
draft: true
-
configuration: Debug