Skip to content

Commit

Permalink
Add icons and fileinfo to windows executables
Browse files Browse the repository at this point in the history
Updated the icons fileinfo for windows executables

Fixes #154: Add icon and file info to windows executables

Conflicts:
	src/win32/console/consoleres.rc
  • Loading branch information
pstorz authored and Marco van Wieringen committed May 5, 2013
1 parent 57e2c16 commit a524426
Show file tree
Hide file tree
Showing 11 changed files with 190 additions and 66 deletions.
150 changes: 90 additions & 60 deletions src/images/bat.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/qt-console/main.ui
Expand Up @@ -16,7 +16,7 @@
</property>
<property name="windowIcon">
<iconset resource="main.qrc">
<normaloff>:/images/bat.png</normaloff>:/images/bat.png</iconset>
<normaloff>:/images/bareos_1.png</normaloff>:/images/bareos_1.png</iconset>
</property>
<property name="toolTip">
<string/>
Expand Down Expand Up @@ -239,7 +239,7 @@
<action name="actionAbout_bat">
<property name="icon">
<iconset resource="main.qrc">
<normaloff>:/images/bat.png</normaloff>:/images/bat.png</iconset>
<normaloff>:/images/bareos_1.png</normaloff>:/images/bareos_1.png</iconset>
</property>
<property name="text">
<string>&amp;About bat</string>
Expand Down
2 changes: 1 addition & 1 deletion src/qt-console/prefs.ui
Expand Up @@ -19,7 +19,7 @@
<string>Preferences</string>
</property>
<property name="windowIcon" >
<iconset>images/bat.png</iconset>
<iconset>images/bareos_1.png</iconset>
</property>
<layout class="QGridLayout" >
<property name="leftMargin" >
Expand Down
12 changes: 10 additions & 2 deletions src/win32/console/Makefile
Expand Up @@ -34,11 +34,14 @@ LDLIBS = ../lib/libbareos.a \
CONSSRCS = console.c console_conf.c authenticate.c
CONSOBJS = $(CONSSRCS:.c=.o)

WINDRESSRCS = consoleres.rc
WINDRESOBJS = $(WINDRESSRCS:.rc=.o)

all: bconsole.exe

bconsole.exe: DLL_USAGE = -DUSING_DLL
bconsole.exe: $(CONSOBJS)
$(CXX) $(LDFLAGS_CONS) $(CONSOBJS) $(LDLIBS) -o $@
bconsole.exe: $(CONSOBJS) $(WINDRESOBJS)
$(CXX) $(LDFLAGS_CONS) $(CONSOBJS) $(LDLIBS) $(WINDRESOBJS) -o $@

clean:
rm -f *.o
Expand All @@ -50,3 +53,8 @@ distclean:: clean
.c.o:
@echo "Compiling $<"
$(CXX) $(DLL_USAGE) $(CXXFLAGS) -c -o $@ $<

%.o : %.rc
@echo "Ressource Compiling $^"
$(WINDRES) $^ -o $@

26 changes: 26 additions & 0 deletions src/win32/console/consoleres.rc
@@ -0,0 +1,26 @@
id ICON "../../../platforms/win32/bareos.ico"
1 VERSIONINFO
FILEVERSION 1,0,0,0
PRODUCTVERSION 1,0,0,0
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "080904E4"
BEGIN
VALUE "CompanyName", "Bareos GmbH & Co. KG"
VALUE "FileDescription", "Bareos Console"
VALUE "FileVersion", "12.4.2"
VALUE "InternalName", "bconsole.exe"
VALUE "LegalCopyright", "See LICENSE File"
VALUE "OriginalFilename", "bconsole"
VALUE "ProductName", "Bareos Console"
VALUE "ProductVersion", "12.4.2"
END
END

BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x809, 1252
END
END

2 changes: 1 addition & 1 deletion src/win32/filed/Makefile
Expand Up @@ -36,7 +36,7 @@ SVRSRCS = accurate.c authenticate.c backup.c compression.c \
service.c main.c
SVROBJS = $(SVRSRCS:.c=.o)

WINDRESSRCS = icon.rc
WINDRESSRCS = filedres.rc
WINDRESOBJS = $(WINDRESSRCS:.rc=.o)


Expand Down
1 change: 1 addition & 0 deletions src/win32/filed/icon.rc → src/win32/filed/filedres.rc
Expand Up @@ -23,3 +23,4 @@ BEGIN
VALUE "Translation", 0x809, 1252
END
END

3 changes: 3 additions & 0 deletions src/win32/qt-console/bat.pro
Expand Up @@ -160,3 +160,6 @@ INSTALLS += confs
QMAKE_EXTRA_TARGETS += depend

TRANSLATIONS += ts/bat_fr.ts ts/bat_de.ts

# Windows Icon and App Info
win32:RC_FILE = batres.rc
26 changes: 26 additions & 0 deletions src/win32/qt-console/batres.rc
@@ -0,0 +1,26 @@
id ICON "../../../platforms/win32/bareos.ico"
1 VERSIONINFO
FILEVERSION 1,0,0,0
PRODUCTVERSION 1,0,0,0
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "080904E4"
BEGIN
VALUE "CompanyName", "Bareos GmbH & Co. KG"
VALUE "FileDescription", "Bareos Admin Tool"
VALUE "FileVersion", "12.4.2"
VALUE "InternalName", "bat.exe"
VALUE "LegalCopyright", "See LICENSE File"
VALUE "OriginalFilename", "bat.exe"
VALUE "ProductName", "Bareos Admin Tool"
VALUE "ProductVersion", "12.4.2"
END
END

BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x809, 1252
END
END

4 changes: 4 additions & 0 deletions src/win32/qt-tray-monitor/tray-monitor.pro
Expand Up @@ -37,3 +37,7 @@ SOURCES += authenticate.cpp tray_conf.cpp tray-monitor.cpp \
monitoritemthread.cpp

FORMS += mainwindow.ui

# Application icon and info
win32:RC_FILE = traymon.rc

26 changes: 26 additions & 0 deletions src/win32/qt-tray-monitor/traymon.rc
@@ -0,0 +1,26 @@
id ICON "../../../platforms/win32/bareos.ico"
1 VERSIONINFO
FILEVERSION 1,0,0,0
PRODUCTVERSION 1,0,0,0
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "080904E4"
BEGIN
VALUE "CompanyName", "Bareos GmbH & Co. KG"
VALUE "FileDescription", "Bareos Tray Monitor"
VALUE "FileVersion", "12.4.2"
VALUE "InternalName", "bareos-tray-monitor.exe"
VALUE "LegalCopyright", "See LICENSE File"
VALUE "OriginalFilename", "bareos-tray-monitor.exe"
VALUE "ProductName", "Bareos Admin Tool"
VALUE "ProductVersion", "12.4.2"
END
END

BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x809, 1252
END
END

0 comments on commit a524426

Please sign in to comment.