-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
top autoconf/make changes to improve build
the following helps in doing out of tree builds which helps keep things clearer The new .in files here are effectively the icecast nsis files moved and made more like a template. The names match for mingw but similar styles could be done for other compilers. They only get used in the mingw case as determined by The conditional compile is done a different way in automake, this seem to be causing a pic/non-pic builds for those. so worked around that.
- Loading branch information
Showing
12 changed files
with
318 additions
and
45 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,123 @@ | ||
#!Nsis Installer Command Script | ||
# | ||
# This is an NSIS Installer Command Script generated automatically | ||
# by the Fedora nsiswrapper program. For more information see: | ||
# | ||
# http://fedoraproject.org/wiki/MinGW | ||
# | ||
# To build an installer from the script you would normally do: | ||
# | ||
# makensis this_script | ||
# | ||
# which will generate the output file 'installer.exe' which is a Windows | ||
# installer containing your program. | ||
|
||
Name "Icecast KH" | ||
OutFile "icecast-@PACKAGE_VERSION@_win32_setup.exe" | ||
|
||
InstallDir "$ProgramFiles\Icecast KH" | ||
InstallDirRegKey HKLM SOFTWARE\Icecast "Install_Dir" | ||
|
||
LoadLanguageFile "${NSISDIR}\Contrib\Language files\English.nlf" | ||
|
||
ShowInstDetails hide | ||
ShowUninstDetails hide | ||
|
||
# Uncomment this to enable BZip2 compression, which results in | ||
# slightly smaller files but uses more memory at install time. | ||
SetCompressor bzip2 | ||
|
||
XPStyle on | ||
|
||
;Version Information | ||
|
||
VIProductVersion "2.4.0.20" | ||
VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductName" "Icecast KH" | ||
VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductVersion" "2.4.0" | ||
VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" "Karl Heyes @2000-2023" | ||
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileDescription" "Icecast KH streaming media server installer" | ||
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "@PACKAGE_VERSION@" | ||
|
||
Page components | ||
Page directory | ||
Page instfiles | ||
|
||
ComponentText "Select which optional components you want to install." | ||
|
||
DirText "Please select the installation folder." | ||
|
||
Function un.onInit | ||
MessageBox MB_YESNO "Uninstall icecast KH from $INSTDIR ?" IDYES NoAbort | ||
Abort ; causes uninstaller to quit. | ||
NoAbort: | ||
FunctionEnd | ||
|
||
Section "Icecast Installation" | ||
SectionIn RO | ||
|
||
SetOutPath "$INSTDIR" | ||
File /r "x32/*.dll" | ||
|
||
WriteUninstaller "$INSTDIR\Uninstall.exe" | ||
|
||
File "x32/icecast.exe" | ||
SetOverwrite off | ||
File "x32/icecast.xml" | ||
SetOverwrite on | ||
|
||
SetOutPath "$INSTDIR\logs" | ||
File /r "x32/logs/" | ||
|
||
SetOutPath "$INSTDIR\admin" | ||
File /r "x32/admin/" | ||
|
||
SetOutPath "$INSTDIR\doc" | ||
File /r "x32/doc/" | ||
|
||
SetOutPath "$INSTDIR\web" | ||
File /r "x32/web/" | ||
|
||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Icecast KH" \ | ||
"DisplayName" "Icecast KH" | ||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Icecast KH" \ | ||
"UninstallString" "$\"$INSTDIR\Uninstall.exe$\"" | ||
SectionEnd | ||
|
||
Section "Install Service" | ||
SetOutPath "$INSTDIR" | ||
ExecWait '"$INSTDIR\icecast.exe" "install" "$INSTDIR"' | ||
SectionEnd | ||
|
||
Section "Start Menu Shortcuts" | ||
CreateDirectory "$SMPROGRAMS\Icecast KH" | ||
SetOutPath "$INSTDIR" | ||
CreateShortCut "$SMPROGRAMS\Icecast KH\Edit Configuration.lnk" "notepad.exe" "$INSTDIR\icecast.xml" | ||
CreateShortCut "$SMPROGRAMS\Icecast KH\Uninstall Icecast.lnk" "$INSTDIR\Uninstall.exe" "" "$INSTDIR\Uninstall.exe" 0 | ||
CreateShortCut "$SMPROGRAMS\Icecast KH\Run Icecast.lnk" "$INSTDIR\icecast.exe" '-c "$INSTDIR\icecast.xml"' | ||
SectionEnd | ||
|
||
Section "Desktop Icons" | ||
SetOutPath "$INSTDIR" | ||
CreateShortCut "$DESKTOP\Icecast.lnk" "$INSTDIR\icecast.exe" '-c "$INSTDIR\icecast.xml"' | ||
SectionEnd | ||
|
||
Section "Uninstall" | ||
ExecWait '"$INSTDIR\icecast.exe" "remove"' | ||
Delete $INSTDIR\Uninstall.exe | ||
Delete /rebootok "$DESKTOP\Icecast.lnk" | ||
Delete /rebootok "$SMPROGRAMS\Icecast KH\Run Icecast.lnk" | ||
Delete /rebootok "$SMPROGRAMS\Icecast KH\Uninstall Icecast.lnk" | ||
Delete /rebootok "$SMPROGRAMS\Icecast KH\Edit Configuration.lnk" | ||
RMDir "$SMPROGRAMS\Icecast KH" | ||
|
||
RMDir /r "$INSTDIR\web" | ||
RMDir /r "$INSTDIR\doc" | ||
RMDir /r "$INSTDIR\admin" | ||
|
||
Delete /rebootok "$INSTDIR\icecast.exe" | ||
|
||
Delete /rebootok "$INSTDIR\*.dll" | ||
|
||
RMDir "$INSTDIR" | ||
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Icecast KH" | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
#!Nsis Installer Command Script | ||
# | ||
# This is an NSIS Installer Command Script generated automatically | ||
# by the Fedora nsiswrapper program. For more information see: | ||
# | ||
# http://fedoraproject.org/wiki/MinGW | ||
# | ||
# To build an installer from the script you would normally do: | ||
# | ||
# makensis this_script | ||
# | ||
# which will generate the output file 'installer.exe' which is a Windows | ||
# installer containing your program. | ||
|
||
Name "Icecast KH" | ||
OutFile "icecast-@PACKAGE_VERSION@_win64_setup.exe" | ||
|
||
InstallDir "$ProgramFiles64\Icecast KH" | ||
InstallDirRegKey HKLM SOFTWARE\Icecast "Install_Dir" | ||
|
||
LoadLanguageFile "${NSISDIR}\Contrib\Language files\English.nlf" | ||
|
||
ShowInstDetails hide | ||
ShowUninstDetails hide | ||
|
||
# Uncomment this to enable BZip2 compression, which results in | ||
# slightly smaller files but uses more memory at install time. | ||
SetCompressor bzip2 | ||
|
||
XPStyle on | ||
|
||
;Version Information | ||
|
||
VIProductVersion "2.4.0.20" | ||
VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductName" "Icecast KH" | ||
VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductVersion" "2.4.0" | ||
VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" "Karl Heyes @2000-2023" | ||
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileDescription" "Icecast KH streaming media server installer" | ||
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "@PACKAGE_VERSION@" | ||
|
||
Page components | ||
Page directory | ||
Page instfiles | ||
|
||
ComponentText "Select which optional components you want to install." | ||
|
||
DirText "Please select the installation folder." | ||
|
||
Function un.onInit | ||
MessageBox MB_YESNO "Uninstall icecast KH from $INSTDIR ?" IDYES NoAbort | ||
Abort ; causes uninstaller to quit. | ||
NoAbort: | ||
FunctionEnd | ||
|
||
Section "Icecast Installation" | ||
SectionIn RO | ||
|
||
SetOutPath "$INSTDIR" | ||
File /r "x64/*.dll" | ||
|
||
WriteUninstaller "$INSTDIR\Uninstall.exe" | ||
|
||
File "x64/icecast.exe" | ||
SetOverwrite off | ||
File "x64/icecast.xml" | ||
SetOverwrite on | ||
|
||
SetOutPath "$INSTDIR\logs" | ||
File /r "x64/logs/" | ||
|
||
SetOutPath "$INSTDIR\admin" | ||
File /r "x64/admin/" | ||
|
||
SetOutPath "$INSTDIR\doc" | ||
File /r "x64/doc/" | ||
|
||
SetOutPath "$INSTDIR\web" | ||
File /r "x64/web/" | ||
|
||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Icecast KH" \ | ||
"DisplayName" "Icecast KH" | ||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Icecast KH" \ | ||
"UninstallString" "$\"$INSTDIR\Uninstall.exe$\"" | ||
SectionEnd | ||
|
||
Section "Install Service" | ||
SetOutPath "$INSTDIR" | ||
ExecWait '"$INSTDIR\icecast.exe" "install" "$INSTDIR"' | ||
SectionEnd | ||
|
||
Section "Start Menu Shortcuts" | ||
CreateDirectory "$SMPROGRAMS\Icecast KH" | ||
SetOutPath "$INSTDIR" | ||
CreateShortCut "$SMPROGRAMS\Icecast KH\Edit Configuration.lnk" "notepad.exe" "$INSTDIR\icecast.xml" | ||
CreateShortCut "$SMPROGRAMS\Icecast KH\Uninstall Icecast.lnk" "$INSTDIR\Uninstall.exe" "" "$INSTDIR\Uninstall.exe" 0 | ||
CreateShortCut "$SMPROGRAMS\Icecast KH\Run Icecast.lnk" "$INSTDIR\icecast.exe" '-c "$INSTDIR\icecast.xml"' | ||
SectionEnd | ||
|
||
Section "Desktop Icons" | ||
SetOutPath "$INSTDIR" | ||
CreateShortCut "$DESKTOP\Icecast.lnk" "$INSTDIR\icecast.exe" '-c "$INSTDIR\icecast.xml"' | ||
SectionEnd | ||
|
||
Section "Uninstall" | ||
ExecWait '"$INSTDIR\icecast.exe" "remove"' | ||
Delete $INSTDIR\Uninstall.exe | ||
Delete /rebootok "$DESKTOP\Icecast.lnk" | ||
Delete /rebootok "$SMPROGRAMS\Icecast KH\Run Icecast.lnk" | ||
Delete /rebootok "$SMPROGRAMS\Icecast KH\Uninstall Icecast.lnk" | ||
Delete /rebootok "$SMPROGRAMS\Icecast KH\Edit Configuration.lnk" | ||
RMDir "$SMPROGRAMS\Icecast KH" | ||
|
||
RMDir /r "$INSTDIR\web" | ||
RMDir /r "$INSTDIR\doc" | ||
RMDir /r "$INSTDIR\admin" | ||
|
||
Delete /rebootok "$INSTDIR\icecast.exe" | ||
|
||
Delete /rebootok "$INSTDIR\*.dll" | ||
|
||
RMDir "$INSTDIR" | ||
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Icecast KH" | ||
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
Oops, something went wrong.