mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-13 11:58:26 -06:00
Linux/FreeBSD: Improvements on installation scripts (#1514)
This patch moves away from gnome-terminal -e options which is deprecated and subject to possibly be removed in the future. The -- option is nearly equivalent in behaviour. Also ensures that uninstallation script has correct privileges, adds window title to xmessage and ensures correct files are used during installation.
This commit is contained in:
@@ -179,7 +179,7 @@ endif
|
||||
GUI_CONDITION := $(filter gui,$(INSTALLER_TYPE))
|
||||
GTK2_CONDITION := $(filter 2,$(GTK_VERSION))
|
||||
|
||||
INTERNAL_INSTALLER_NAME := veracrypt_install_f$(SYSTEMNAME)_$(INSTALLER_TYPE)_$(CPU_ARCH).sh
|
||||
INTERNAL_INSTALLER_NAME := veracrypt_install_$(SYSTEMNAME)_$(INSTALLER_TYPE)_$(CPU_ARCH).sh
|
||||
|
||||
ifneq (,$(GUI_CONDITION))
|
||||
ifneq (,$(GTK2_CONDITION))
|
||||
@@ -354,7 +354,7 @@ prepare: $(APPNAME)
|
||||
mkdir -p $(BASE_DIR)/Setup/FreeBSD/usr/bin
|
||||
mkdir -p $(BASE_DIR)/Setup/FreeBSD/usr/share/doc/$(APPNAME)/HTML
|
||||
cp $(BASE_DIR)/Main/$(APPNAME) $(BASE_DIR)/Setup/FreeBSD/usr/bin/$(APPNAME)
|
||||
cp $(BASE_DIR)/Setup/Linux/$(APPNAME)-uninstall.sh $(BASE_DIR)/Setup/FreeBSD/usr/bin/$(APPNAME)-uninstall.sh
|
||||
cp $(BASE_DIR)/Setup/FreeBSD/$(APPNAME)-uninstall.sh $(BASE_DIR)/Setup/FreeBSD/usr/bin/$(APPNAME)-uninstall.sh
|
||||
chmod +x $(BASE_DIR)/Setup/FreeBSD/usr/bin/$(APPNAME)-uninstall.sh
|
||||
cp $(BASE_DIR)/License.txt $(BASE_DIR)/Setup/FreeBSD/usr/share/doc/$(APPNAME)/License.txt
|
||||
cp -R $(BASE_DIR)/../doc/html/* "$(BASE_DIR)/Setup/FreeBSD/usr/share/doc/$(APPNAME)/HTML"
|
||||
@@ -364,10 +364,10 @@ prepare: $(APPNAME)
|
||||
ifndef TC_NO_GUI
|
||||
mkdir -p $(BASE_DIR)/Setup/FreeBSD/usr/share/applications
|
||||
mkdir -p $(BASE_DIR)/Setup/FreeBSD/usr/share/pixmaps
|
||||
mkdir -p $(BASE_DIR)/Setup/Linux/usr/share/mime/packages
|
||||
mkdir -p $(BASE_DIR)/Setup/FreeBSD/usr/share/mime/packages
|
||||
cp $(BASE_DIR)/Resources/Icons/VeraCrypt-256x256.xpm $(BASE_DIR)/Setup/FreeBSD/usr/share/pixmaps/$(APPNAME).xpm
|
||||
cp $(BASE_DIR)/Setup/Linux/$(APPNAME).desktop $(BASE_DIR)/Setup/FreeBSD/usr/share/applications/$(APPNAME).desktop
|
||||
cp $(BASE_DIR)/Setup/Linux/$(APPNAME).xml $(BASE_DIR)/Setup/Linux/usr/share/mime/packages/$(APPNAME).xml
|
||||
cp $(BASE_DIR)/Setup/FreeBSD/$(APPNAME).desktop $(BASE_DIR)/Setup/FreeBSD/usr/share/applications/$(APPNAME).desktop
|
||||
cp $(BASE_DIR)/Setup/FreeBSD/$(APPNAME).xml $(BASE_DIR)/Setup/FreeBSD/usr/share/mime/packages/$(APPNAME).xml
|
||||
endif
|
||||
chown -R root:wheel $(BASE_DIR)/Setup/FreeBSD/usr
|
||||
chmod -R go-w $(BASE_DIR)/Setup/FreeBSD/usr
|
||||
|
||||
Reference in New Issue
Block a user