mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-28 04:47:52 +00:00

Keeping *internal* API and ABI compatibility makes working with an already complex codebase more mentally demanding than it needs to be. Remember: plugins should be in-tree and upstream! If your out of tree plugin stops working then it should be upstream. The public-facing libfwupd will remain API and ABI stable for obvious reasons.
93 lines
3.4 KiB
Plaintext
93 lines
3.4 KiB
Plaintext
#!Nsis Installer Command Script
|
|
#
|
|
# To build an installer from the script you would normally do:
|
|
#
|
|
# dnf install mingw32-nsis
|
|
# makensis setup-win32.nsi
|
|
|
|
Name ""
|
|
OutFile "setup/fwupd-@FWUPD_VERSION@-setup-x86_64.exe"
|
|
InstallDir "$ProgramFiles\fwupd"
|
|
InstallDirRegKey HKLM SOFTWARE\fwupd "Install_Dir"
|
|
ShowInstDetails hide
|
|
ShowUninstDetails hide
|
|
XPStyle on
|
|
Page directory
|
|
Page instfiles
|
|
|
|
ComponentText "Select which optional components you want to install."
|
|
|
|
DirText "Please select the installation folder."
|
|
|
|
Section "fwupd"
|
|
SectionIn RO
|
|
|
|
SetOutPath "$INSTDIR\bin"
|
|
|
|
# deps
|
|
File "/usr/x86_64-w64-mingw32/sys-root/mingw/bin/iconv.dll"
|
|
File "/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libarchive-13.dll"
|
|
File "/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libbrotlicommon.dll"
|
|
File "/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libbrotlidec.dll"
|
|
File "/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libbz2-1.dll"
|
|
File "/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libffi-6.dll"
|
|
File "/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libgcc_s_seh-1.dll"
|
|
File "/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libgio-2.0-0.dll"
|
|
File "/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libglib-2.0-0.dll"
|
|
File "/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libgmodule-2.0-0.dll"
|
|
File "/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libgmp-10.dll"
|
|
File "/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libgnutls-30.dll"
|
|
File "/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libgnutls-30.dll"
|
|
File "/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libgobject-2.0-0.dll"
|
|
File "/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libgusb-2.dll"
|
|
File "/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libhogweed-5.dll"
|
|
File "/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libidn2-0.dll"
|
|
File "/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libintl-8.dll"
|
|
File "/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libjson-glib-1.0-0.dll"
|
|
File "/usr/x86_64-w64-mingw32/sys-root/mingw/bin/liblzma-5.dll"
|
|
File "/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libnettle-7.dll"
|
|
File "/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libp11-kit-0.dll"
|
|
File "/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libpcre-1.dll"
|
|
File "/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libcurl-4.dll"
|
|
File "/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libsqlite3-0.dll"
|
|
File "/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libtasn1-6.dll"
|
|
File "/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libusb-1.0.dll"
|
|
File "/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libwinpthread-1.dll"
|
|
File "/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libxml2-2.dll"
|
|
File "/usr/x86_64-w64-mingw32/sys-root/mingw/bin/zlib1.dll"
|
|
|
|
# fwupd
|
|
File "dfu-tool.exe"
|
|
File "jcat-tool.exe"
|
|
File "fwupdtool.exe"
|
|
File "libfwupd-2.dll"
|
|
File "libfwupdplugin-2.dll"
|
|
File "libgcab-1.0-0.dll"
|
|
File "libxmlb-2.dll"
|
|
File "libjcat-1.dll"
|
|
SetOutPath "$INSTDIR\fwupd-plugins-3"
|
|
File /r "fwupd-plugins-3/libfu_plugin_*.dll"
|
|
SetOutPath "$INSTDIR\etc\fwupd"
|
|
File "etc/fwupd/daemon.conf"
|
|
SetOutPath "$INSTDIR\etc\pki\fwupd"
|
|
File "etc/pki/fwupd/LVFS-CA.pem"
|
|
SetOutPath "$INSTDIR\share\fwupd\quirks.d"
|
|
File /r "share/fwupd/quirks.d/*.quirk"
|
|
|
|
ReadEnvStr $0 COMSPEC
|
|
SetOutPath "$INSTDIR"
|
|
SectionEnd
|
|
|
|
Section "Uninstall"
|
|
RMDir /rebootok /r "$SMPROGRAMS\fwupd"
|
|
RMDir /rebootok /r "$INSTDIR\bin"
|
|
RMDir /rebootok /r "$INSTDIR\etc"
|
|
RMDir /rebootok /r "$INSTDIR\lib"
|
|
RMDir /rebootok /r "$INSTDIR\share"
|
|
RMDir /rebootok "$INSTDIR"
|
|
SectionEnd
|
|
|
|
Section -post
|
|
WriteUninstaller "$INSTDIR\Uninstall fwupd.exe"
|
|
SectionEnd
|