Skip to content
Permalink
Browse files

Added deployment package generation

  • Loading branch information...
Michal Altair Valášek
Michal Altair Valášek committed Mar 17, 2019
1 parent 5ca1920 commit 57761c7a342b4fa84326661bd0fba922c3c0e7b7
Showing with 65 additions and 0 deletions.
  1. +3 −0 .gitignore
  2. +7 −0 Altairis.Xml4web.AzureSync/app.config
  3. +7 −0 Altairis.Xml4web.Compiler/app.config
  4. +47 −0 Deploy/package.cmd
  5. +1 −0 XML4web.sln
@@ -331,3 +331,6 @@ ASALocalRun/

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

@@ -0,0 +1,7 @@
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="lib" />
</assemblyBinding>
</runtime>
</configuration>
@@ -0,0 +1,7 @@
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="lib" />
</assemblyBinding>
</runtime>
</configuration>
@@ -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 ..

@@ -10,6 +10,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
.gitignore = .gitignore
CODE_OF_CONDUCT.md = CODE_OF_CONDUCT.md
LICENSE = LICENSE
Deploy\package.cmd = Deploy\package.cmd
README.md = README.md
EndProjectSection
EndProject

0 comments on commit 57761c7

Please sign in to comment.
You can’t perform that action at this time.