-
Notifications
You must be signed in to change notification settings - Fork 1
/
DFWHD_build.nsh
135 lines (98 loc) · 5.48 KB
/
DFWHD_build.nsh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
#region Copyright (C) 2005-2017 Team MediaPortal
/*
// Copyright (C) 2005-2011 Team MediaPortal
// http://www.team-mediaportal.com
//
// MediaPortal is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 2 of the License, or
// (at your option) any later version.
//
// MediaPortal is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with MediaPortal. If not, see <http://www.gnu.org/licenses/>.
*/
#endregion
#**********************************************************************************************************#
#
# For building the installer on your own you need:
# 1. Latest NSIS version from http://nsis.sourceforge.net/Download
#
#**********************************************************************************************************#
#---------------------------------------------------------------------------
# SPECIAL BUILDS
#---------------------------------------------------------------------------
##### GIT_BUILD
# This build will be created by git bot only.
# Creating such a build, will only include the changed and new files since latest stable release to the installer.
##### HEISE_BUILD
# Uncomment the following line to create a setup for "Heise Verlag" / ct' magazine (without MPC-HC/Gabest Filters)
#!define HEISE_BUILD
# parameter for command line execution: /DHEISE_BUILD
#---------------------------------------------------------------------------
# DEVELOPMENT ENVIRONMENT
#---------------------------------------------------------------------------
#---------------------------------------------------------------------------
# DEVELOPMENT ENVIRONMENT
#---------------------------------------------------------------------------
##---------------------------------------------------------------------------
## pre build commands
##---------------------------------------------------------------------------
##---------------------------------------------------------------------------
## DEFINES
##---------------------------------------------------------------------------
#---------------------------------------------------------------------------
# VARIABLES
#---------------------------------------------------------------------------
#---------------------------------------------------------------------------
# INCLUDE FILES
#---------------------------------------------------------------------------
#---------------------------------------------------------------------------
# INSTALLER INTERFACE settings
#---------------------------------------------------------------------------
#---------------------------------------------------------------------------
# INSTALLER INTERFACE
#---------------------------------------------------------------------------
#---------------------------------------------------------------------------
# INSTALLER LANGUAGES
#---------------------------------------------------------------------------
#---------------------------------------------------------------------------
# INSTALLER ATTRIBUTES
#---------------------------------------------------------------------------
!define properskinpath "${DFWHDPath}"
!define DFWHD_nameoutput "DFWHD_${SkinReleaseVersion}"
!define Ext_filename "DefaultWideHD.xmp2"
# !define SkinReleaseVersion "${VER_MAJOR}.${VER_MINOR}.${VER_REVISION}.${VER_BUILD}" provided in initial NSH file.
#test command
#!system '"${GIT_ROOT}\mediaportal\MPE\MpeMaker\bin\Release\MpeMaker.exe" "${properskinpath}\${Ext_filename}" /V=0.0.0.3 /B'
!system '"${GIT_ROOT}\mediaportal\MPE\MpeMaker\bin\${BUILD_TYPE}\MpeMaker.exe" "${properskinpath}\${Ext_filename}" /V=${SkinReleaseVersion} /B' = 0
#move the extension installer to Release MP folder.
!system 'move "${git_InstallScripts}\Release\${DFWHD_nameoutput}.mpe1" "${git_OUT}\${DFWHD_nameoutput}.mpe1"'
!undef Ext_filename
!undef properskinpath
#!undef DFWHD_nameoutput
#!undef SkinReleaseVersion
#---------------------------------------------------------------------------
# USEFUL MACROS
#---------------------------------------------------------------------------
#---------------------------------------------------------------------------
# SECTIONS and REMOVEMACROS
#---------------------------------------------------------------------------
#---------------------------------------------------------------------------
# FILTER REGISTRATION
# for more information see: http://nsis.sourceforge.net/Docs/AppendixB.html
#---------------------------------------------------------------------------
#---------------------------------------------------------------------------
# This Section is executed after the Main section has finished and writes Uninstall information into the registry
#---------------------------------------------------------------------------
# This section is called on uninstall and removes all components
#---------------------------------------------------------------------------
# SOME MACROS AND FUNCTIONS
#---------------------------------------------------------------------------
#---------------------------------------------------------------------------
# SECTION DESCRIPTIONS
#---------------------------------------------------------------------------