mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-02 05:40:40 +08:00
Also remove website link.
Would otherwise be hanging loose in the start-menu somehwere. done as part of CURA-12502
This commit is contained in:
parent
82939b2644
commit
c33a322093
@ -1,9 +1,8 @@
|
|||||||
# Copyright (c) 2022 UltiMaker B.V.
|
# Copyright (c) 2025 UltiMaker
|
||||||
# Cura's build system is released under the terms of the AGPLv3 or higher.
|
# Cura's build system is released under the terms of the AGPLv3 or higher.
|
||||||
|
|
||||||
!define APP_NAME "{{ app_name }}"
|
!define APP_NAME "{{ app_name }}"
|
||||||
!define COMP_NAME "{{ company }}"
|
!define COMP_NAME "{{ company }}"
|
||||||
!define WEB_SITE "{{ web_site }}"
|
|
||||||
!define VERSION "{{ version }}"
|
!define VERSION "{{ version }}"
|
||||||
!define VIVERSION "{{ version_major }}.{{ version_minor }}.{{ version_patch }}.0"
|
!define VIVERSION "{{ version_major }}.{{ version_minor }}.{{ version_patch }}.0"
|
||||||
!define COPYRIGHT "Copyright (c) {{ year }} {{ company }}"
|
!define COPYRIGHT "Copyright (c) {{ year }} {{ company }}"
|
||||||
@ -107,20 +106,11 @@ WriteUninstaller "$INSTDIR\uninstall.exe"
|
|||||||
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
|
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
|
||||||
CreateShortCut "$SMPROGRAMS\${APP_NAME}.lnk" "$INSTDIR\${MAIN_APP_EXE}"
|
CreateShortCut "$SMPROGRAMS\${APP_NAME}.lnk" "$INSTDIR\${MAIN_APP_EXE}"
|
||||||
|
|
||||||
!ifdef WEB_SITE
|
|
||||||
WriteIniStr "$INSTDIR\UltiMaker Cura website.url" "InternetShortcut" "URL" "${WEB_SITE}"
|
|
||||||
CreateShortCut "$SMPROGRAMS\UltiMaker Cura website.lnk" "$INSTDIR\UltiMaker Cura website.url"
|
|
||||||
!endif
|
|
||||||
!insertmacro MUI_STARTMENU_WRITE_END
|
!insertmacro MUI_STARTMENU_WRITE_END
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
!ifndef REG_START_MENU
|
!ifndef REG_START_MENU
|
||||||
CreateShortCut "$SMPROGRAMS\${APP_NAME}.lnk" "$INSTDIR\${MAIN_APP_EXE}"
|
CreateShortCut "$SMPROGRAMS\${APP_NAME}.lnk" "$INSTDIR\${MAIN_APP_EXE}"
|
||||||
|
|
||||||
!ifdef WEB_SITE
|
|
||||||
WriteIniStr "$INSTDIR\UltiMaker Cura website.url" "InternetShortcut" "URL" "${WEB_SITE}"
|
|
||||||
CreateShortCut "$SMPROGRAMS\UltiMaker Cura website.lnk" "$INSTDIR\UltiMaker Cura website.url"
|
|
||||||
!endif
|
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
WriteRegStr ${REG_ROOT} "${REG_APP_PATH}" "" "$INSTDIR\${MAIN_APP_EXE}"
|
WriteRegStr ${REG_ROOT} "${REG_APP_PATH}" "" "$INSTDIR\${MAIN_APP_EXE}"
|
||||||
@ -131,9 +121,6 @@ WriteRegStr ${REG_ROOT} "${UNINSTALL_PATH}" "DisplayIcon" "$INSTDIR\${MAIN_APP_
|
|||||||
WriteRegStr ${REG_ROOT} "${UNINSTALL_PATH}" "DisplayVersion" "${VERSION}"
|
WriteRegStr ${REG_ROOT} "${UNINSTALL_PATH}" "DisplayVersion" "${VERSION}"
|
||||||
WriteRegStr ${REG_ROOT} "${UNINSTALL_PATH}" "Publisher" "${COMP_NAME}"
|
WriteRegStr ${REG_ROOT} "${UNINSTALL_PATH}" "Publisher" "${COMP_NAME}"
|
||||||
|
|
||||||
!ifdef WEB_SITE
|
|
||||||
WriteRegStr ${REG_ROOT} "${UNINSTALL_PATH}" "URLInfoAbout" "${WEB_SITE}"
|
|
||||||
!endif
|
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
@ -170,26 +157,17 @@ RmDir "$INSTDIR\share\uranium"
|
|||||||
RmDir "$INSTDIR\share"
|
RmDir "$INSTDIR\share"
|
||||||
|
|
||||||
Delete "$INSTDIR\uninstall.exe"
|
Delete "$INSTDIR\uninstall.exe"
|
||||||
!ifdef WEB_SITE
|
|
||||||
Delete "$INSTDIR\${APP_NAME} website.url"
|
|
||||||
!endif
|
|
||||||
|
|
||||||
RmDir /r /REBOOTOK "$INSTDIR"
|
RmDir /r /REBOOTOK "$INSTDIR"
|
||||||
|
|
||||||
!ifdef REG_START_MENU
|
!ifdef REG_START_MENU
|
||||||
Delete "$SMPROGRAMS\${APP_NAME}.lnk"
|
Delete "$SMPROGRAMS\${APP_NAME}.lnk"
|
||||||
Delete "$SMPROGRAMS\Uninstall ${APP_NAME}.lnk"
|
Delete "$SMPROGRAMS\Uninstall ${APP_NAME}.lnk"
|
||||||
!ifdef WEB_SITE
|
|
||||||
Delete "$SMPROGRAMS\UltiMaker Cura website.lnk"
|
|
||||||
!endif
|
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
!ifndef REG_START_MENU
|
!ifndef REG_START_MENU
|
||||||
Delete "$SMPROGRAMS\${APP_NAME}.lnk"
|
Delete "$SMPROGRAMS\${APP_NAME}.lnk"
|
||||||
Delete "$SMPROGRAMS\Uninstall ${APP_NAME}.lnk"
|
Delete "$SMPROGRAMS\Uninstall ${APP_NAME}.lnk"
|
||||||
!ifdef WEB_SITE
|
|
||||||
Delete "$SMPROGRAMS\UltiMaker Cura website.lnk"
|
|
||||||
!endif
|
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
!insertmacro APP_UNASSOCIATE "stl" "Cura.model"
|
!insertmacro APP_UNASSOCIATE "stl" "Cura.model"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Copyright (c) 2022 UltiMaker
|
# Copyright (c) 2025 UltiMaker
|
||||||
# Cura is released under the terms of the LGPLv3 or higher.
|
# Cura is released under the terms of the LGPLv3 or higher.
|
||||||
|
|
||||||
|
|
||||||
@ -51,7 +51,6 @@ def generate_nsi(source_path: str, dist_path: str, filename: str, version: str):
|
|||||||
version_minor = str(parsed_version.minor),
|
version_minor = str(parsed_version.minor),
|
||||||
version_patch = str(parsed_version.patch),
|
version_patch = str(parsed_version.patch),
|
||||||
company = "UltiMaker",
|
company = "UltiMaker",
|
||||||
web_site = "https://ultimaker.com",
|
|
||||||
year = datetime.now().year,
|
year = datetime.now().year,
|
||||||
cura_license_file = str(source_loc.joinpath("packaging", "cura_license.txt")),
|
cura_license_file = str(source_loc.joinpath("packaging", "cura_license.txt")),
|
||||||
compression_method = "LZMA", # ZLIB, BZIP2 or LZMA
|
compression_method = "LZMA", # ZLIB, BZIP2 or LZMA
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Copyright (c) 2022 UltiMaker
|
# Copyright (c) 2025 UltiMaker
|
||||||
# Cura is released under the terms of the LGPLv3 or higher.
|
# Cura is released under the terms of the LGPLv3 or higher.
|
||||||
|
|
||||||
|
|
||||||
@ -40,7 +40,6 @@ def generate_wxs(source_path: Path, dist_path: Path, filename: Path, app_name: s
|
|||||||
version_minor=str(parsed_version.minor),
|
version_minor=str(parsed_version.minor),
|
||||||
version_patch=str(parsed_version.patch),
|
version_patch=str(parsed_version.patch),
|
||||||
company="UltiMaker",
|
company="UltiMaker",
|
||||||
web_site="https://ultimaker.com",
|
|
||||||
year=datetime.now().year,
|
year=datetime.now().year,
|
||||||
upgrade_code=str(uuid.uuid5(uuid.NAMESPACE_DNS, app_name)),
|
upgrade_code=str(uuid.uuid5(uuid.NAMESPACE_DNS, app_name)),
|
||||||
cura_license_file=str(source_loc.joinpath("packaging", "msi", "cura_license.rtf")),
|
cura_license_file=str(source_loc.joinpath("packaging", "msi", "cura_license.rtf")),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user