Skip to content

Commit

Permalink
prepare appveyor for automatic releases
Browse files Browse the repository at this point in the history
  • Loading branch information
chcg committed Dec 26, 2016
1 parent 819f7a2 commit 666cb1b
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 17 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# NPP_HexEdit
Notepad++ Plugin Hexedit
Repo with sourcecode from http://sourceforge.net/projects/npp-plugins/files/Hex%20Editor/
unofficial repo with sourcecode from http://sourceforge.net/projects/npp-plugins/files/Hex%20Editor/


Build Status
Expand Down
46 changes: 30 additions & 16 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
version: 1.0.{build}
version: 0.9.5.{build}
image: Visual Studio 2015


clone_depth: 1


environment:
matrix:
- PlatformToolset: v140_xp
Expand All @@ -28,27 +25,44 @@ build:
verbosity: minimal

build_script:
- cd c:\projects\npp-hexedit\HexEditor\projects\2003\
- cd "%APPVEYOR_BUILD_FOLDER%"\HexEditor\projects\2003\
- msbuild HexEditor.vcxproj /p:configuration="%configuration%" /p:platform="%platform%" /p:PlatformToolset="%PlatformToolset%"

after_build:
- cd c:\projects\npp-hexedit\HexEditor\projects\2003\
- cd "%APPVEYOR_BUILD_FOLDER%"\HexEditor\projects\2003\
- ps: >-
$hexediterFileName = "HexEditor.$env:PLATFORM.$env:CONFIGURATION.$env:PLATFORMTOOLSET.dll"
if ($env:PLATFORM -eq "x64" -and $env:CONFIGURATION -eq "Release") {
Push-AppveyorArtifact "x64\Release\HexEditor.dll" -FileName "$hexediterFileName"
if ($env:PLATFORM -eq "x64") {
Push-AppveyorArtifact "$env:PLATFORM\$env:CONFIGURATION\HexEditor.dll" -FileName HexEditor.dll
}
if ($env:PLATFORM -eq "x64" -and $env:CONFIGURATION -eq "Debug") {
Push-AppveyorArtifact "x64\Debug\HexEditor.dll" -FileName "$hexediterFileName"
if ($env:PLATFORM -eq "Win32" ) {
Push-AppveyorArtifact "$env:CONFIGURATION\HexEditor.dll" -FileName HexEditor.dll
}
if ($env:PLATFORM -eq "Win32" -and $env:CONFIGURATION -eq "Release") {
Push-AppveyorArtifact "Release\HexEditor.dll" -FileName "$hexediterFileName"
if ($($env:APPVEYOR_REPO_TAG) -eq "true" -and $env:CONFIGURATION -eq "Release" -and $env:PLATFORMTOOLSET -eq "v120_xp") {
$ZipFileName = "HexEditor_$($env:APPVEYOR_REPO_TAG_NAME)_$env:PLATFORM.zip"
if($env:PLATFORM -eq "x64"){
7z a $ZipFileName $env:PLATFORM\$env:CONFIGURATION\*.dll
}
if($env:PLATFORM -eq "Win32"){
7z a $ZipFileName $env:CONFIGURATION\*.dll
}
}
if ($env:PLATFORM -eq "Win32" -and $env:CONFIGURATION -eq "Debug") {
Push-AppveyorArtifact "Debug\HexEditor.dll" -FileName "$hexediterFileName"
}
artifacts:
- path: HexEditor_*.zip
name: releases

deploy:
provider: GitHub
auth_token:
secure: PhNXrhw03Z0rJZssX/UYyoIofw669wU1GBy/hGq+WJPCXd7mbxDu6Il32Rx0LBH6
artifact: releases
draft: false
prerelease: false
force_update: true
on:
appveyor_repo_tag: true
PlatformToolset: v120_xp
configuration: Release

0 comments on commit 666cb1b

Please sign in to comment.