-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Costura.Fody to embed assemblies into executable.
- Loading branch information
1 parent
0591d34
commit 3a0f94a
Showing
11 changed files
with
231 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Weavers> | ||
<Costura /> | ||
</Weavers> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Sales Manager - Track your Envato market sales | ||
RBSoft | ||
http://rbsoft.org | ||
http://rbsoft.uservoice.com | ||
https://github.com/ravibpatel/SalesManager | ||
|
||
MIT License | ||
|
||
Copyright (c) 2017-2018 RBSoft | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
; Script generated by the HM NIS Edit Script Wizard. | ||
|
||
; HM NIS Edit Wizard helper defines | ||
!define PRODUCT_NAME "Sales Manager" | ||
!define PRODUCT_VERSION "1.0.5" | ||
VIProductVersion 1.0.5.0 | ||
!define PRODUCT_PUBLISHER "RBSoft Inc." | ||
!define PRODUCT_WEB_SITE "http://www.rbsoft.org" | ||
!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\Sales Manager.exe" | ||
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" | ||
!define PRODUCT_UNINST_ROOT_KEY "HKLM" | ||
|
||
VIAddVersionKey ProductName "${PRODUCT_NAME}" | ||
VIAddVersionKey CompanyName "${PRODUCT_PUBLISHER}" | ||
VIAddVersionKey LegalCopyright "Copyright © 2017-2018 RBSoft" | ||
VIAddVersionKey FileVersion ${PRODUCT_VERSION} | ||
VIAddVersionKey FileDescription "Sales Manager - Track your Envato market sales" | ||
VIAddVersionKey ProductVersion ${PRODUCT_VERSION} | ||
VIAddVersionKey InternalName "Sales Manager Setup" | ||
|
||
SetCompressor lzma | ||
|
||
; MUI 1.67 compatible ------ | ||
!include "MUI.nsh" | ||
!include "DotNetChecker.nsh" | ||
|
||
; MUI Settings | ||
!define MUI_ABORTWARNING | ||
!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\nsis3-install.ico" | ||
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\nsis3-uninstall.ico" | ||
!define MUI_HEADERIMAGE_BITMAP "nsis3-metro-right.bmp" | ||
|
||
; Welcome page | ||
!insertmacro MUI_PAGE_WELCOME | ||
; License page | ||
!insertmacro MUI_PAGE_LICENSE "..\bin\Release\License.txt" | ||
; Directory page | ||
!insertmacro MUI_PAGE_DIRECTORY | ||
; Instfiles page | ||
!insertmacro MUI_PAGE_INSTFILES | ||
; Finish page | ||
!define MUI_FINISHPAGE_RUN "$INSTDIR\Sales Manager.exe" | ||
!insertmacro MUI_PAGE_FINISH | ||
|
||
; Uninstaller pages | ||
!insertmacro MUI_UNPAGE_INSTFILES | ||
|
||
; Language files | ||
!insertmacro MUI_LANGUAGE "English" | ||
|
||
; Reserve files | ||
!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS | ||
|
||
; MUI end ------ | ||
|
||
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}" | ||
OutFile "..\..\Sales.Manager.Setup.exe" | ||
InstallDir "$PROGRAMFILES\RBSoft\Sales Manager" | ||
InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" "" | ||
ShowInstDetails show | ||
ShowUnInstDetails show | ||
|
||
Section "MainSection" SEC01 | ||
!insertmacro CheckNetFramework 452 | ||
|
||
SetOutPath "$INSTDIR" | ||
File "..\bin\Release\Sales Manager.exe" | ||
CreateDirectory "$SMPROGRAMS\Sales Manager" | ||
CreateShortCut "$SMPROGRAMS\Sales Manager\Sales Manager.lnk" "$INSTDIR\Sales Manager.exe" | ||
CreateShortCut "$DESKTOP\Sales Manager.lnk" "$INSTDIR\Sales Manager.exe" | ||
File "..\bin\Release\Sales Manager.exe.config" | ||
File "..\bin\Release\Sales Manager.pdb" | ||
File "..\bin\Release\License.txt" | ||
File "..\bin\Release\Help.chm" | ||
SetOutPath "$INSTDIR\x64" | ||
File "..\bin\Release\x64\sqlite3.dll" | ||
SetOutPath "$INSTDIR\x86" | ||
File "..\bin\Release\x86\sqlite3.dll" | ||
SectionEnd | ||
|
||
Section -AdditionalIcons | ||
SetOutPath $INSTDIR | ||
WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}" | ||
CreateShortCut "$SMPROGRAMS\Sales Manager\Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url" | ||
CreateShortCut "$SMPROGRAMS\Sales Manager\Uninstall.lnk" "$INSTDIR\uninst.exe" | ||
SectionEnd | ||
|
||
Section -Post | ||
WriteUninstaller "$INSTDIR\uninst.exe" | ||
WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\Sales Manager.exe" | ||
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)" | ||
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe" | ||
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\Sales Manager.exe" | ||
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}" | ||
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}" | ||
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}" | ||
SectionEnd | ||
|
||
|
||
Function un.onUninstSuccess | ||
HideWindow | ||
MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) was successfully removed from your computer." | ||
FunctionEnd | ||
|
||
Function un.onInit | ||
MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Are you sure you want to completely remove $(^Name) and all of its components?" IDYES +2 | ||
Abort | ||
FunctionEnd | ||
|
||
Section Uninstall | ||
Delete "$INSTDIR\${PRODUCT_NAME}.url" | ||
Delete "$INSTDIR\uninst.exe" | ||
Delete "$INSTDIR\x86\sqlite3.dll" | ||
Delete "$INSTDIR\x64\sqlite3.dll" | ||
Delete "$INSTDIR\License.txt" | ||
Delete "$INSTDIR\Help.chm" | ||
Delete "$INSTDIR\Sales Manager.pdb" | ||
Delete "$INSTDIR\Sales Manager.exe.config" | ||
Delete "$INSTDIR\Sales Manager.exe" | ||
|
||
Delete "$SMPROGRAMS\Sales Manager\Uninstall.lnk" | ||
Delete "$SMPROGRAMS\Sales Manager\Website.lnk" | ||
Delete "$DESKTOP\Sales Manager.lnk" | ||
Delete "$SMPROGRAMS\Sales Manager\Sales Manager.lnk" | ||
|
||
RMDir "$SMPROGRAMS\Sales Manager" | ||
RMDir "$INSTDIR\x86" | ||
RMDir "$INSTDIR\x64" | ||
RMDir "$INSTDIR" | ||
|
||
DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" | ||
DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}" | ||
SetAutoClose true | ||
SectionEnd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
version: 1.0.5.{build} | ||
skip_branch_with_pr: true | ||
image: Visual Studio 2017 | ||
|
||
# clone directory | ||
clone_folder: c:\projects\SalesManager | ||
|
||
# build platform, i.e. x86, x64, Any CPU. This setting is optional. | ||
platform: Any CPU | ||
|
||
# build Configuration, i.e. Debug, Release, etc. | ||
configuration: Release | ||
|
||
before_build: | ||
- cmd: nuget restore | ||
|
||
build: | ||
verbosity: minimal | ||
|
||
environment: | ||
my_secret: | ||
secure: pPM+5t4pxJs8OJlB/LrK32VzAn0hkgwa+MtPn/yGhLA= | ||
|
||
install: | ||
- nuget install secure-file -ExcludeVersion | ||
- secure-file\tools\secure-file -decrypt "c:\projects\SalesManager\Sales Manager\Sales Manager.snk.enc" -secret %my_secret% | ||
|
||
# NSIS Paths | ||
# https://www.appveyor.com/docs/build-environment/#tools | ||
- set PATH=%PATH%;C:\Program Files (x86)\NSIS; | ||
|
||
# NSIS Plugin (NsisDotNetChecker) | ||
- appveyor DownloadFile https://github.com/ReVolly/NsisDotNetChecker/archive/master.zip | ||
- 7z e master.zip -o"C:\Program Files (x86)\NSIS\Include" DotNetChecker.nsh -r | ||
- 7z e master.zip -o"C:\Program Files (x86)\NSIS\Plugins\x86-ansi" DotNetChecker.dll -r | ||
|
||
after_build: | ||
- cmd: 7z a Sales.Manager.Portable.zip "c:\projects\SalesManager\Sales Manager\bin\Release\" | ||
- cmd: makensis.exe "c:\projects\SalesManager\Sales Manager\Setup\Sales Manager.nsi" | ||
|
||
artifacts: | ||
- path: Sales.Manager.Setup.exe | ||
- path: Sales.Manager.Portable.zip | ||
|
||
deploy: | ||
release: $(APPVEYOR_REPO_TAG_NAME) | ||
description: '// TODO: Writing Release Notes' | ||
provider: GitHub | ||
auth_token: | ||
secure: WHW27Nvc8zNhfyhxIYdl/NwbrkFzvSX0vE4/CS8iByPXM6rcztWhUrDXJ7eejLBY | ||
draft: false | ||
prerelease: false | ||
on: | ||
branch: master # release from master branch only | ||
appveyor_repo_tag: true # deploy on tag push only |