Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
bitmask-vpn
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
leap
bitmask-vpn
Merge requests
!77
[pkg] make windows cross pkg work
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
[pkg] make windows cross pkg work
meskio/bitmask-vpn:osx_cross
into
master
Overview
0
Commits
1
Pipelines
1
Changes
2
Merged
meskio
requested to merge
meskio/bitmask-vpn:osx_cross
into
master
5 years ago
Overview
0
Commits
1
Pipelines
1
Changes
2
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
9bbe6bd2
1 commit,
5 years ago
2 files
+
38
−
26
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
branding/templates/makefile/Makefile
+
35
−
23
Options
@@ -16,38 +16,30 @@ WIN_CERT_PATH?=z:\leap\LEAP.pfx
WIN_CERT_PASS
?=
OSX_CERT
=
"Developer ID Installer: LEAP Encryption Access Project"
DEB_VERSION
=
$(
shell
echo
${
VERSION
}
|
cut
-d
'-'
-f
1,2
)
ifeq
($(OS),Windows_NT)
# is Windows_NT on XP, 2000, 7, Vista, 10...
SYSTEM
=
Windows
else
SYSTEM
=
$(
shell
uname
-s
)
endif
# -----------------------------------------------------------------------------
# Windows
# -----------------------------------------------------------------------------
openvpn_win
:
if
not exist staging
\o
penvpn
mkdir
staging
\o
penvpn
wget https://build.openvpn.net/downloads/releases/latest/tap-windows-latest-stable.exe
-O
staging/openvpn/tap-windows.exe
# eventually, this should be built statically and cross compiled in the same pipeline that we build the installer.
wget https
:
//downloads.leap.se/thirdparty/windows/openvpn-x86_64-w64-mingw32.tar.bz2 -O staging/openvpn/openvpn.tar.bz2
7z e
-y
-ostaging
/openvpn/ staging/openvpn/openvpn.tar.bz2
7z e
-y
-r
-ostaging
/openvpn/ staging/openvpn/openvpn.tar
*
.dll
7z e
-y
-r
-ostaging
/openvpn/ staging/openvpn/openvpn.tar
*
.exe
copy .
\s
taging
\o
penvpn
\o
penvpn.exe .
\s
taging
copy .
\s
taging
\o
penvpn
\*
.dll .
\s
taging
openvpn_cross_win
:
mkdir
-p
staging/openvpn
wget https://build.openvpn.net/downloads/releases/latest/tap-windows-latest-stable.exe
-O
$(
STAGING
)
/openvpn/tap-windows.exe
wget https://downloads.leap.se/thirdparty/windows/openvpn-x86_64-w64-mingw32.tar.bz2
-O
$(
STAGING
)
/openvpn/openvpn.tar.bz2
tar
xvjf
$(
STAGING
)
/openvpn/openvpn.tar.bz2
-C
$(
STAGING
)
/openvpn/
cp
$(
STAGING
)
/openvpn/bin/openvpn.exe
$(
STAGING
)
/openvpn
cp
$(
STAGING
)
/openvpn/bin/
*
.dll
$(
STAGING
)
cp
$(
STAGING
)
/openvpn/lib/engines-1_1/
*
.dll
$(
STAGING
)
pkg_win
:
staging
\n
ssm.exe helper_win systray_win
# I assume you did bootstrap openvpn_win manually already.
ifeq
($(SYSTEM), Windows)
pkg_win
:
staging
\n
ssm.exe staging
\o
penvpn
\o
penvpn.exe
echo
"[+] building windows"
copy ..
\b
in
\b
itmask-vpn staging
\b
itmask-vpn.exe
copy ..
\b
in
\b
itmask-helper staging
\b
itmask_helper.exe
"C:
\P
rogram Files (x86)
\N
SIS
\m
akensis.exe"
windows/
$(
APPNAME
)
-installer
.nsi
pkg_cross_win
:
staging/nssm.exe
else
pkg_win
:
staging/nssm.exe staging/openvpn/openvpn.exe
echo
"[+] building windows"
cp
../bin/bitmask-vpn staging/bitmask-vpn.exe
cp
../bin/bitmask-helper staging/bitmask_helper.exe
makensis windows/
$(
APPNAME
)
-installer
.nsi
endif
sign_win
:
echo
"[+] signing windows build"
@@ -123,3 +115,23 @@ staging/nssm.exe:
unzip
$(
STAGING
)
/nssm.zip
-d
$(
STAGING
)
mv
$(
STAGING
)
/nssm-
*
/win32/nssm.exe
$(
STAGING
)
rm
-rf
$(
STAGING
)
/nssm-
*
$(
STAGING
)
/nssm.zip
staging\openvpn\openvpn.exe
:
if
not exist staging
\o
penvpn
mkdir
staging
\o
penvpn
wget https://build.openvpn.net/downloads/releases/latest/tap-windows-latest-stable.exe
-O
staging/openvpn/tap-windows.exe
# eventually, this should be built statically and cross compiled in the same pipeline that we build the installer.
wget https
:
//downloads.leap.se/thirdparty/windows/openvpn-x86_64-w64-mingw32.tar.bz2 -O staging/openvpn/openvpn.tar.bz2
7z e
-y
-ostaging
/openvpn/ staging/openvpn/openvpn.tar.bz2
7z e
-y
-r
-ostaging
/openvpn/ staging/openvpn/openvpn.tar
*
.dll
7z e
-y
-r
-ostaging
/openvpn/ staging/openvpn/openvpn.tar
*
.exe
copy .
\s
taging
\o
penvpn
\o
penvpn.exe .
\s
taging
copy .
\s
taging
\o
penvpn
\*
.dll .
\s
taging
staging/openvpn/openvpn.exe
:
mkdir
-p
staging/openvpn
wget https://build.openvpn.net/downloads/releases/latest/tap-windows-latest-stable.exe
-O
$(
STAGING
)
/openvpn/tap-windows.exe
wget https://downloads.leap.se/thirdparty/windows/openvpn-x86_64-w64-mingw32.tar.bz2
-O
$(
STAGING
)
/openvpn/openvpn.tar.bz2
tar
xvjf
$(
STAGING
)
/openvpn/openvpn.tar.bz2
-C
$(
STAGING
)
/openvpn/
cp
$(
STAGING
)
/openvpn/bin/openvpn.exe
$(
STAGING
)
/openvpn
cp
$(
STAGING
)
/openvpn/bin/
*
.dll
$(
STAGING
)
cp
$(
STAGING
)
/openvpn/lib/engines-1_1/
*
.dll
$(
STAGING
)
Loading