Publishing added
This commit is contained in:
parent
30a2027707
commit
7af2b3da0a
43
Makefile
43
Makefile
@ -18,6 +18,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
OUTPUT_DIR=output
|
OUTPUT_DIR=output
|
||||||
|
PUBLISH_DIR=\\amebis.doma\Splet\WWW\Apache\www.amebis.si-prenos\ZRCola
|
||||||
|
|
||||||
!IF "$(PROCESSOR_ARCHITECTURE)" == "AMD64"
|
!IF "$(PROCESSOR_ARCHITECTURE)" == "AMD64"
|
||||||
PLAT=x64
|
PLAT=x64
|
||||||
@ -67,6 +68,7 @@ Clean ::
|
|||||||
-if exist "$(OUTPUT_DIR)\Setup\ZRColaSl32D.msi" del /f /q "$(OUTPUT_DIR)\Setup\ZRColaSl32D.msi"
|
-if exist "$(OUTPUT_DIR)\Setup\ZRColaSl32D.msi" del /f /q "$(OUTPUT_DIR)\Setup\ZRColaSl32D.msi"
|
||||||
-if exist "$(OUTPUT_DIR)\Setup\ZRColaSl64.msi" del /f /q "$(OUTPUT_DIR)\Setup\ZRColaSl64.msi"
|
-if exist "$(OUTPUT_DIR)\Setup\ZRColaSl64.msi" del /f /q "$(OUTPUT_DIR)\Setup\ZRColaSl64.msi"
|
||||||
-if exist "$(OUTPUT_DIR)\Setup\ZRColaSl64D.msi" del /f /q "$(OUTPUT_DIR)\Setup\ZRColaSl64D.msi"
|
-if exist "$(OUTPUT_DIR)\Setup\ZRColaSl64D.msi" del /f /q "$(OUTPUT_DIR)\Setup\ZRColaSl64D.msi"
|
||||||
|
-if exist "$(OUTPUT_DIR)\catalog.xml" del /f /q "$(OUTPUT_DIR)\catalog.xml"
|
||||||
|
|
||||||
!IFNDEF HAS_VERSION
|
!IFNDEF HAS_VERSION
|
||||||
|
|
||||||
@ -79,7 +81,8 @@ All \
|
|||||||
Setup \
|
Setup \
|
||||||
SetupDebug \
|
SetupDebug \
|
||||||
Register \
|
Register \
|
||||||
Unregister :: "MSI\MSIBuild\Version\Version.mak"
|
Unregister \
|
||||||
|
Publish :: "MSI\MSIBuild\Version\Version.mak"
|
||||||
$(MAKE) /f "Makefile" /$(MAKEFLAGS) HAS_VERSION=1 $@
|
$(MAKE) /f "Makefile" /$(MAKEFLAGS) HAS_VERSION=1 $@
|
||||||
|
|
||||||
"MSI\MSIBuild\Version\Version.mak" ::
|
"MSI\MSIBuild\Version\Version.mak" ::
|
||||||
@ -97,6 +100,14 @@ Unregister :: "MSI\MSIBuild\Version\Version.mak"
|
|||||||
!INCLUDE "MSI\MSIBuild\Version\Version.mak"
|
!INCLUDE "MSI\MSIBuild\Version\Version.mak"
|
||||||
!INCLUDE "include\MSIBuildCfg.mak"
|
!INCLUDE "include\MSIBuildCfg.mak"
|
||||||
|
|
||||||
|
PUBLISH_PACKAGE_DIR=$(PUBLISH_DIR)\$(MSIBUILD_VERSION_STR)
|
||||||
|
PUBLISH_PACKAGE_URL=http://www.amebis.si/prenos/ZRCola/$(MSIBUILD_VERSION_STR)
|
||||||
|
|
||||||
|
REDIST_EN_WIN32="$(PUBLISH_PACKAGE_DIR)\ZRColaEn32.msi"
|
||||||
|
REDIST_EN_X64="$(PUBLISH_PACKAGE_DIR)\ZRColaEn64.msi"
|
||||||
|
REDIST_SL_WIN32="$(PUBLISH_PACKAGE_DIR)\ZRColaSl32.msi"
|
||||||
|
REDIST_SL_X64="$(PUBLISH_PACKAGE_DIR)\ZRColaSl64.msi"
|
||||||
|
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
# Main targets
|
# Main targets
|
||||||
@ -172,6 +183,14 @@ RegisterShortcuts :: \
|
|||||||
UnregisterShortcuts ::
|
UnregisterShortcuts ::
|
||||||
-if exist "$(PROGRAMDATA)\Microsoft\Windows\Start Menu\Programs\ZRCola" rd /s /q "$(PROGRAMDATA)\Microsoft\Windows\Start Menu\Programs\ZRCola"
|
-if exist "$(PROGRAMDATA)\Microsoft\Windows\Start Menu\Programs\ZRCola" rd /s /q "$(PROGRAMDATA)\Microsoft\Windows\Start Menu\Programs\ZRCola"
|
||||||
|
|
||||||
|
Publish :: \
|
||||||
|
"$(PUBLISH_PACKAGE_DIR)" \
|
||||||
|
$(REDIST_EN_WIN32) \
|
||||||
|
$(REDIST_EN_X64) \
|
||||||
|
$(REDIST_SL_WIN32) \
|
||||||
|
$(REDIST_SL_X64) \
|
||||||
|
"$(PUBLISH_DIR)\catalog-0000.xml"
|
||||||
|
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
# Folder creation
|
# Folder creation
|
||||||
@ -180,12 +199,16 @@ UnregisterShortcuts ::
|
|||||||
"$(OUTPUT_DIR)" \
|
"$(OUTPUT_DIR)" \
|
||||||
"$(OUTPUT_DIR)\Keys" \
|
"$(OUTPUT_DIR)\Keys" \
|
||||||
"$(OUTPUT_DIR)\Setup" \
|
"$(OUTPUT_DIR)\Setup" \
|
||||||
|
"$(PUBLISH_DIR)" \
|
||||||
|
"$(PUBLISH_PACKAGE_DIR)" \
|
||||||
"$(PROGRAMDATA)\Microsoft\Windows\Start Menu\Programs\ZRCola" :
|
"$(PROGRAMDATA)\Microsoft\Windows\Start Menu\Programs\ZRCola" :
|
||||||
if not exist $@ md $@
|
if not exist $@ md $@
|
||||||
|
|
||||||
"$(OUTPUT_DIR)\Keys" \
|
"$(OUTPUT_DIR)\Keys" \
|
||||||
"$(OUTPUT_DIR)\Setup" : "$(OUTPUT_DIR)"
|
"$(OUTPUT_DIR)\Setup" : "$(OUTPUT_DIR)"
|
||||||
|
|
||||||
|
"$(PUBLISH_PACKAGE_DIR)" : "$(PUBLISH_DIR)"
|
||||||
|
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
# File copy
|
# File copy
|
||||||
@ -340,4 +363,22 @@ $(REDIST_SL_X64) : "$(OUTPUT_DIR)\ZRColaSl64.3.msi"
|
|||||||
$(MAKE) /f "Makefile" /$(MAKEFLAGS) LANG=Sl PLAT=x64 CFG=Debug
|
$(MAKE) /f "Makefile" /$(MAKEFLAGS) LANG=Sl PLAT=x64 CFG=Debug
|
||||||
cd "$(MAKEDIR)"
|
cd "$(MAKEDIR)"
|
||||||
|
|
||||||
|
"$(PUBLISH_DIR)\catalog-0000.xml" : "$(OUTPUT_DIR)\catalog.xml"
|
||||||
|
if exist $@ del /f /q $@
|
||||||
|
output\$(PLAT).Release\UpdSignXML.exe $** $@
|
||||||
|
|
||||||
|
"$(OUTPUT_DIR)\catalog.xml" : \
|
||||||
|
"$(OUTPUT_DIR)\ZRColaEn32.3.msi" \
|
||||||
|
"$(OUTPUT_DIR)\ZRColaEn64.3.msi" \
|
||||||
|
"$(OUTPUT_DIR)\ZRColaSl32.3.msi" \
|
||||||
|
"$(OUTPUT_DIR)\ZRColaSl64.3.msi"
|
||||||
|
-if exist $@ del /f /q $@
|
||||||
|
-if exist "$(@:"=).tmp" del /f /q "$(@:"=).tmp"
|
||||||
|
copy /y "$(PUBLISH_DIR)\catalog-0000.xml" "$(@:"=).tmp" > NUL
|
||||||
|
output\$(PLAT).Release\UpdPublish.exe "$(@:"=).tmp" "$(@:"=).tmp" win-x86 en_US "$(PUBLISH_PACKAGE_URL)/ZRColaEn32.msi" -f "$(OUTPUT_DIR)\ZRColaEn32.3.msi"
|
||||||
|
output\$(PLAT).Release\UpdPublish.exe "$(@:"=).tmp" "$(@:"=).tmp" win-amd64 en_US "$(PUBLISH_PACKAGE_URL)/ZRColaEn64.msi" -f "$(OUTPUT_DIR)\ZRColaEn64.3.msi"
|
||||||
|
output\$(PLAT).Release\UpdPublish.exe "$(@:"=).tmp" "$(@:"=).tmp" win-x86 sl_SI "$(PUBLISH_PACKAGE_URL)/ZRColaSl32.msi" -f "$(OUTPUT_DIR)\ZRColaSl32.3.msi"
|
||||||
|
output\$(PLAT).Release\UpdPublish.exe "$(@:"=).tmp" "$(@:"=).tmp" win-amd64 sl_SI "$(PUBLISH_PACKAGE_URL)/ZRColaSl64.msi" -f "$(OUTPUT_DIR)\ZRColaSl64.3.msi"
|
||||||
|
move /y "$(@:"=).tmp" $@ > NUL
|
||||||
|
|
||||||
!ENDIF
|
!ENDIF
|
||||||
|
1
output/.gitignore
vendored
1
output/.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
|
/catalog.xml
|
||||||
/System (64-bit) Folder
|
/System (64-bit) Folder
|
||||||
/System Folder
|
/System Folder
|
||||||
/Win32.Debug
|
/Win32.Debug
|
||||||
|
Loading…
x
Reference in New Issue
Block a user