Skip to content

Commit

Permalink
Fix appveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
diev committed Jun 24, 2024
1 parent 1c888bd commit 74770f5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 26 deletions.
1 change: 1 addition & 0 deletions Api5704/PostBuild.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ rem <Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(OS)' ==
rem <Exec Command="call PostBuild.cmd $(ProjectPath)"/>
rem </Target>

rem if '%APPVEYOR%' == 'True' exit /b 0
setlocal
chcp 65001
rem $(ProjectPath)
Expand Down
34 changes: 8 additions & 26 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,43 +25,25 @@ install:
$env:BuildDate = $CommitDateTime.ToString('yyyy-MM-dd')
$env:Site = "http://{0}.github.io/{1}" -f $env:APPVEYOR_ACCOUNT_NAME, $env:APPVEYOR_PROJECT_NAME
Write-Host "Building v$env:APPVEYOR_BUILD_VERSION dated $env:BuildDate"
build_script:
- cmd: >-
dotnet publish -c Release -o Package
cd Package
echo %SITE%>>readme.txt
echo [InternetShortcut]>readme.url
echo URL=%SITE%>>readme.url
echo %APPVEYOR_PROJECT_NAME%.exe>>Package
echo %APPVEYOR_PROJECT_NAME%.exe.config>>Package
echo %APPVEYOR_PROJECT_NAME% v%APPVEYOR_BUILD_VERSION% (%BUILDDATE%)>readme.txt
echo http://%APPVEYOR_ACCOUNT_NAME%.github.io/%APPVEYOR_PROJECT_NAME%>>readme.txt
7z a ..\%APPVEYOR_PROJECT_NAME%-v%APPVEYOR_BUILD_VERSION%.zip
cd ..
PostBuild %APPVEYOR_PROJECT_NAME%.proj
artifacts:
- path: $(appveyor_project_name)-v$(appveyor_build_version).zip
- path: ..\$(appveyor_project_name)-v$(appveyor_build_version).zip
name: AppZip
- path: ..\$(appveyor_project_name)-v$(appveyor_build_version)-src.zip
name: SrcZip
deploy:
- provider: GitHub
tag: v$(appveyor_build_version)
release: $(appveyor_project_name) v$(appveyor_build_version)
description: '* $(appveyor_repo_commit_message)\n\nBuild #$(appveyor_build_number) by AppVeyor $(BuildDate)\nSee docs on $(Site)'
description: '* $(appveyor_repo_commit_message)\n\nBuild #$(appveyor_build_number) by AppVeyor $(BuildDate)'
auth_token:
secure: Oyf/ccEamPwfWLPEZQlf9hPfhGGXu3Kqnmt9saeaTMH2OE6OR0tAt2JkDl/FRR9o
artifact: AppZip
artifact:
- AppZip
- SrcZip
draft: false
prerelease: true
force_update: true
Expand Down

0 comments on commit 74770f5

Please sign in to comment.