Skip to content

Commit

Permalink
Prep for v1.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefansundin committed Feb 16, 2019
1 parent eb26bc9 commit 2a6afbe
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 64 deletions.
45 changes: 0 additions & 45 deletions build.bat

This file was deleted.

21 changes: 18 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
#!/bin/bash -ex
# sudo apt-get install gcc-mingw-w64
x86_64-w64-mingw32-windres -o superf4.o include/superf4.rc
x86_64-w64-mingw32-gcc -o SuperF4.exe superf4.c superf4.o -mwindows -lshlwapi -lpsapi -O2 -s
# sudo apt-get install gcc-mingw-w64 nsis

if [[ "$1" == "release" ]]; then
mkdir -p bin/32 bin/64
cp SuperF4.ini bin/32/
cp SuperF4.ini bin/64/

i686-w64-mingw32-windres -o superf4.o include/superf4.rc
i686-w64-mingw32-gcc -o bin/32/SuperF4.exe superf4.c superf4.o -mwindows -lshlwapi -lpsapi -O2 -s

x86_64-w64-mingw32-windres -o superf4.o include/superf4.rc
x86_64-w64-mingw32-gcc -o bin/64/SuperF4.exe superf4.c superf4.o -mwindows -lshlwapi -lpsapi -O2 -s

makensis -V2 -Dx64 installer.nsi
else
x86_64-w64-mingw32-windres -o superf4.o include/superf4.rc
x86_64-w64-mingw32-gcc -o SuperF4.exe superf4.c superf4.o -mwindows -lshlwapi -lpsapi -O2 -g -DDEBUG
fi
2 changes: 1 addition & 1 deletion include/autostart.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (C) 2015 Stefan Sundin
Copyright (C) 2019 Stefan Sundin

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion include/error.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (C) 2015 Stefan Sundin
Copyright (C) 2019 Stefan Sundin

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down
8 changes: 4 additions & 4 deletions include/superf4.rc
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "include/x86.exe.manifest"

#define VS_VERSION_INFO 1
VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,3,0,0
PRODUCTVERSION 1,3,0,0
FILEVERSION 1,4,0,0
PRODUCTVERSION 1,4,0,0
FILEFLAGSMASK 0x3fL
FILEFLAGS 0x0L
FILEOS 0x40004L
Expand All @@ -24,11 +24,11 @@ BEGIN
BLOCK "040904b0"
BEGIN
VALUE "FileDescription", "SuperF4"
VALUE "FileVersion", "1.3"
VALUE "FileVersion", "1.4"
VALUE "InternalName", "superf4"
VALUE "OriginalFilename", "SuperF4.exe"
VALUE "CompanyName", "Stefan Sundin"
VALUE "LegalCopyright", "� Stefan Sundin 2015"
VALUE "LegalCopyright", "� Stefan Sundin 2019"
END
END
BLOCK "VarFileInfo"
Expand Down
2 changes: 1 addition & 1 deletion include/tray.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (C) 2015 Stefan Sundin
Copyright (C) 2019 Stefan Sundin

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down
10 changes: 5 additions & 5 deletions installer.nsi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; Copyright (C) 2015 Stefan Sundin
; Copyright (C) 2019 Stefan Sundin
;
; This program is free software: you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
Expand All @@ -9,7 +9,7 @@


!define APP_NAME "SuperF4"
!define APP_VERSION "1.3"
!define APP_VERSION "1.4"
!define APP_URL "https://stefansundin.github.io/superf4/"


Expand Down Expand Up @@ -148,12 +148,12 @@ Section "" sec_app
; Install files
!ifdef x64
${If} ${RunningX64}
File "bin\x64\${APP_NAME}.exe"
File "bin\64\${APP_NAME}.exe"
${Else}
File "bin\${APP_NAME}.exe"
File "bin\32\${APP_NAME}.exe"
${EndIf}
!else
File "bin\${APP_NAME}.exe"
File "bin\32\${APP_NAME}.exe"
!endif
File "${APP_NAME}.ini"

Expand Down
2 changes: 1 addition & 1 deletion localization/strings.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (C) 2015 Stefan Sundin
Copyright (C) 2019 Stefan Sundin

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down
7 changes: 4 additions & 3 deletions superf4.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (C) 2015 Stefan Sundin
Copyright (C) 2019 Stefan Sundin

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand All @@ -20,7 +20,7 @@

// App
#define APP_NAME L"SuperF4"
#define APP_VERSION "1.3"
#define APP_VERSION "1.4"
#define APP_URL L"https://stefansundin.github.io/superf4/"

// Messages
Expand Down Expand Up @@ -326,10 +326,11 @@ LRESULT CALLBACK LowLevelKeyboardProc(int nCode, WPARAM wParam, LPARAM lParam) {
// Prevent this keypress from being propagated
return 1;
}
// Check for [the windows key]+F4
// Check for Win+F4
else if (vkey == VK_LWIN) {
win = 1;
}
// Note: Ctrl+Win+F4 is a shortcut to close virtual desktops
else if (!ctrl && win && vkey == VK_F4) {
// Double check that the windows button is being pressed
if (!(GetAsyncKeyState(VK_LWIN)&0x8000)) {
Expand Down

0 comments on commit 2a6afbe

Please sign in to comment.