Skip to content

Commit 666cb1b

Browse files
committed
prepare appveyor for automatic releases
1 parent 819f7a2 commit 666cb1b

File tree

2 files changed

+31
-17
lines changed

2 files changed

+31
-17
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# NPP_HexEdit
22
Notepad++ Plugin Hexedit
3-
Repo with sourcecode from http://sourceforge.net/projects/npp-plugins/files/Hex%20Editor/
3+
unofficial repo with sourcecode from http://sourceforge.net/projects/npp-plugins/files/Hex%20Editor/
44

55

66
Build Status

appveyor.yml

+30-16
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
version: 1.0.{build}
1+
version: 0.9.5.{build}
22
image: Visual Studio 2015
33

44

5-
clone_depth: 1
6-
7-
85
environment:
96
matrix:
107
- PlatformToolset: v140_xp
@@ -28,27 +25,44 @@ build:
2825
verbosity: minimal
2926

3027
build_script:
31-
- cd c:\projects\npp-hexedit\HexEditor\projects\2003\
28+
- cd "%APPVEYOR_BUILD_FOLDER%"\HexEditor\projects\2003\
3229
- msbuild HexEditor.vcxproj /p:configuration="%configuration%" /p:platform="%platform%" /p:PlatformToolset="%PlatformToolset%"
3330

3431
after_build:
35-
- cd c:\projects\npp-hexedit\HexEditor\projects\2003\
32+
- cd "%APPVEYOR_BUILD_FOLDER%"\HexEditor\projects\2003\
3633
- ps: >-
37-
$hexediterFileName = "HexEditor.$env:PLATFORM.$env:CONFIGURATION.$env:PLATFORMTOOLSET.dll"
3834
39-
if ($env:PLATFORM -eq "x64" -and $env:CONFIGURATION -eq "Release") {
40-
Push-AppveyorArtifact "x64\Release\HexEditor.dll" -FileName "$hexediterFileName"
35+
if ($env:PLATFORM -eq "x64") {
36+
Push-AppveyorArtifact "$env:PLATFORM\$env:CONFIGURATION\HexEditor.dll" -FileName HexEditor.dll
4137
}
4238
43-
if ($env:PLATFORM -eq "x64" -and $env:CONFIGURATION -eq "Debug") {
44-
Push-AppveyorArtifact "x64\Debug\HexEditor.dll" -FileName "$hexediterFileName"
39+
if ($env:PLATFORM -eq "Win32" ) {
40+
Push-AppveyorArtifact "$env:CONFIGURATION\HexEditor.dll" -FileName HexEditor.dll
4541
}
4642
47-
if ($env:PLATFORM -eq "Win32" -and $env:CONFIGURATION -eq "Release") {
48-
Push-AppveyorArtifact "Release\HexEditor.dll" -FileName "$hexediterFileName"
43+
if ($($env:APPVEYOR_REPO_TAG) -eq "true" -and $env:CONFIGURATION -eq "Release" -and $env:PLATFORMTOOLSET -eq "v120_xp") {
44+
$ZipFileName = "HexEditor_$($env:APPVEYOR_REPO_TAG_NAME)_$env:PLATFORM.zip"
45+
if($env:PLATFORM -eq "x64"){
46+
7z a $ZipFileName $env:PLATFORM\$env:CONFIGURATION\*.dll
47+
}
48+
if($env:PLATFORM -eq "Win32"){
49+
7z a $ZipFileName $env:CONFIGURATION\*.dll
50+
}
4951
}
5052
51-
if ($env:PLATFORM -eq "Win32" -and $env:CONFIGURATION -eq "Debug") {
52-
Push-AppveyorArtifact "Debug\HexEditor.dll" -FileName "$hexediterFileName"
53-
}
53+
artifacts:
54+
- path: HexEditor_*.zip
55+
name: releases
5456

57+
deploy:
58+
provider: GitHub
59+
auth_token:
60+
secure: PhNXrhw03Z0rJZssX/UYyoIofw669wU1GBy/hGq+WJPCXd7mbxDu6Il32Rx0LBH6
61+
artifact: releases
62+
draft: false
63+
prerelease: false
64+
force_update: true
65+
on:
66+
appveyor_repo_tag: true
67+
PlatformToolset: v120_xp
68+
configuration: Release

0 commit comments

Comments
 (0)