Skip to content

Commit 5c28d9c

Browse files
committed
Updated installer generation since the build directories changed
1 parent ed83d68 commit 5c28d9c

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

packaging/windows/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ Installers
44
To build the Windows installer, you will need to install the Freelan build tools Python/SCons scripts.
55

66
Building an installer on Windows also requires [Inno Setup](http://www.jrsoftware.org/isinfo.php).
7+
8+
You will also need to compile the `tap-setup.exe` tool from `libasiotap/windows/tap_adapter/tap-setup` using the WDK 7.1. You will find detailed instructions inside this directory.

packaging/windows/SConstruct

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ minor = '1'
88
# You should not need to modify anything below this line
99

1010
import os
11+
import sys
12+
13+
sys.path.insert(0, os.path.abspath('../../freelan-buildtools'))
1114

1215
from freelan.buildtools import Environment
1316

@@ -16,8 +19,8 @@ env = Environment(ENV = os.environ.copy(), ARGUMENTS = ARGUMENTS)
1619
defines = {
1720
'NAME': name,
1821
'VERSION': major + '.' + minor,
19-
'ARCH': env.arch,
20-
'XARCH': 'x64' if env.arch == 'amd64' else 'x86',
22+
'ARCH': env.arch.lower(),
23+
'XARCH': 'x64' if env.arch.lower() == 'amd64' else 'x86',
2124
}
2225

2326
installer = env.INNOSetup(source = 'freelan.iss', ISCC_DEFINES = defines)

packaging/windows/freelan.iss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Name: spanish; MessagesFile: compiler:Languages\Spanish.isl
3333
Name: german; MessagesFile: compiler:Languages\German.isl
3434

3535
[Files]
36-
Source: ..\..\install\mingw\{#XARCH}\bin\freelan.exe; DestDir: {app}\bin; Flags: ignoreversion; Components: binaries
36+
Source: ..\..\install\{#XARCH}\Release\bin\freelan.exe; DestDir: {app}\bin; Flags: ignoreversion; Components: binaries
3737
Source: ..\..\freelan\config\freelan.cfg; DestDir: {app}\config; Flags: ignoreversion onlyifdoesntexist; Components: configuration
3838
Source: files\{#ARCH}\{#TAPINF}.inf; DestDir: {app}\driver; Flags: ignoreversion; Components: tap_adapter
3939
Source: files\{#ARCH}\{#TAP}.cat; DestDir: {app}\driver; Flags: ignoreversion; Components: tap_adapter

0 commit comments

Comments
 (0)