Skip to content

Commit

Permalink
Added deployment package generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Altair Valášek committed Mar 17, 2019
1 parent 5ca1920 commit 57761c7
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -331,3 +331,6 @@ ASALocalRun/


# Project specific files # Project specific files
/Altairis.Xml4web.AzureSync/SyncJobs/ /Altairis.Xml4web.AzureSync/SyncJobs/
/Deploy/Distribution
/Deploy/*.zip

7 changes: 7 additions & 0 deletions Altairis.Xml4web.AzureSync/app.config
@@ -0,0 +1,7 @@
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="lib" />
</assemblyBinding>
</runtime>
</configuration>
7 changes: 7 additions & 0 deletions Altairis.Xml4web.Compiler/app.config
@@ -0,0 +1,7 @@
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="lib" />
</assemblyBinding>
</runtime>
</configuration>
47 changes: 47 additions & 0 deletions Deploy/package.cmd
@@ -0,0 +1,47 @@
@ECHO OFF

SET SIGNTOOL="C:\Program Files (x86)\Microsoft SDKs\ClickOnce\SignTool\signtool.exe"
IF NOT EXIST %SIGNTOOL% (
ECHO This program requires SignTool installed at %SEVENZ%
ECHO The SignTool is part of Windows SDK
EXIT /B
)

SET SEVENZ="C:\Program Files\7-Zip\7z.exe"
IF NOT EXIST %SEVENZ% (
ECHO This program requires 7-Zip installed at %SEVENZ%
ECHO You may get it at http://www.7-zip.org/
EXIT /B
)

ECHO Creating XML4web distribution package...

ECHO Preparing file system...
IF EXIST Distribution RMDIR /Q /S Distribution
IF EXIST XML4web.zip DEL XML4web.zip
IF EXIST XML4web-setup.exe DEL XML4web-setup.exe
MKDIR Distribution\lib

ECHO Copying documentation files...
COPY /Y ..\README.md Distribution
COPY /Y ..\LICENSE Distribution

ECHO Copying Altairis.XML4web.Compiler files...
COPY /Y ..\Altairis.XML4web.Compiler\bin\Debug\net47\*.dll Distribution\lib
COPY /Y ..\Altairis.XML4web.Compiler\bin\Debug\net47\*.exe Distribution
COPY /Y ..\Altairis.XML4web.Compiler\bin\Debug\net47\*.exe.config Distribution
ECHO.

ECHO Copying Altairis.XML4web.AzureSync files...
COPY /Y ..\Altairis.XML4web.AzureSync\bin\Debug\net47\*.dll Distribution\lib
COPY /Y ..\Altairis.XML4web.AzureSync\bin\Debug\net47\*.exe Distribution
COPY /Y ..\Altairis.XML4web.AzureSync\bin\Debug\net47\*.exe.config Distribution

ECHO Digitally signing EXE files...
%SIGNTOOL% sign /n "Altairis, s. r. o." /fd SHA256 /tr http://timestamp.digicert.com /td SHA256 "Distribution\*.exe"

ECHO Making ZIP file...
CD Distribution
%SEVENZ% a ..\XML4web.zip *
CD ..

1 change: 1 addition & 0 deletions XML4web.sln
Expand Up @@ -10,6 +10,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
.gitignore = .gitignore .gitignore = .gitignore
CODE_OF_CONDUCT.md = CODE_OF_CONDUCT.md CODE_OF_CONDUCT.md = CODE_OF_CONDUCT.md
LICENSE = LICENSE LICENSE = LICENSE
Deploy\package.cmd = Deploy\package.cmd
README.md = README.md README.md = README.md
EndProjectSection EndProjectSection
EndProject EndProject
Expand Down

0 comments on commit 57761c7

Please sign in to comment.