Skip to content

Commit

Permalink
Add dll version info
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocobo1 committed May 20, 2019
1 parent 683f8c8 commit 136ad55
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 10 deletions.
27 changes: 18 additions & 9 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,17 @@ build_script:

# scripts to run before deployment
after_build:
- cd "%REPO_DIR%"
- mkdir "x86" "x64"
- copy "src\Release\nppAutoDetectIndent.dll" "x86"
- copy "src\x64\Release\nppAutoDetectIndent.dll" "x64"
- 7z a -mx9 "nppAutoDetectIndent.7z" "x86" "x64"
- 'powershell -Command "& { $hash = (Get-FileHash -Algorithm SHA256 "nppAutoDetectIndent.7z").hash.ToString().toLower(); Write-Host $hash " *nppAutoDetectIndent.7z"; }" > "nppAutoDetectIndent.7z.sha256"'
- cd "%REPO_DIR%\src\Release"
- 7z a -mx9 "x86.zip" "nppAutoDetectIndent.dll"
- 'powershell -Command "& { $hash = (Get-FileHash -Algorithm SHA256 "x86.zip").hash.ToString().toLower(); Write-Host $hash " *x86.zip"; }" > "x86.zip.sha256"'
- move "x86.zip" "%REPO_DIR%"
- move "x86.zip.sha256" "%REPO_DIR%"
- cd "%REPO_DIR%\src\x64\Release"
- 7z a -mx9 "x64.zip" "nppAutoDetectIndent.dll"
- 'powershell -Command "& { $hash = (Get-FileHash -Algorithm SHA256 "x64.zip").hash.ToString().toLower(); Write-Host $hash " *x64.zip"; }" > "x64.zip.sha256"'
- move "x64.zip" "%REPO_DIR%"
- move "x64.zip.sha256" "%REPO_DIR%"


#---------------------------------#
# tests configuration #
Expand All @@ -76,7 +81,11 @@ test: off
#---------------------------------#

artifacts:
- path: nppAutoDetectIndent.7z
name: plugin
- path: nppAutoDetectIndent.7z.sha256
- path: x64.zip
name: x64 plugin
- path: x64.zip.sha256
name: checksum
- path: x86.zip
name: x86 plugin
- path: x86.zip.sha256
name: checksum
2 changes: 1 addition & 1 deletion src/nppAutoDetectIndent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#include "settings.h"

#define PLUGIN_VERSION "1.7"
#define PLUGIN_VERSION "1.8"

namespace
{
Expand Down
Binary file added src/nppAutoDetectIndent.rc
Binary file not shown.
4 changes: 4 additions & 0 deletions src/nppAutoDetectIndent.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@
</ItemDefinitionGroup>
<ItemGroup>
<ClInclude Include="nppAutoDetectIndent.h" />
<ClInclude Include="resource.h" />
<ClInclude Include="settings.h" />
<ClInclude Include="stdafx.h" />
<ClInclude Include="targetver.h" />
Expand All @@ -157,6 +158,9 @@
<ClCompile Include="settings.cpp" />
<ClCompile Include="stdafx.cpp" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="nppAutoDetectIndent.rc" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
Expand Down
14 changes: 14 additions & 0 deletions src/resource.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by nppAutoDetectIndent.rc

// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 101
#define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL_VALUE 1001
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif

0 comments on commit 136ad55

Please sign in to comment.