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
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Julian Merlin
bitmask-vpn
Commits
f1fc8004
Unverified
Commit
f1fc8004
authored
4 years ago
by
Kali Kaneko
Committed by
meskio
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[pkg] add app payload in osx
parent
75d723cf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Makefile
+28
-24
28 additions, 24 deletions
Makefile
installer/bitmask-installer.pro
+12
-1
12 additions, 1 deletion
installer/bitmask-installer.pro
installer/packages/riseupvpn/data/README.txt
+3
-1
3 additions, 1 deletion
installer/packages/riseupvpn/data/README.txt
with
43 additions
and
26 deletions
Makefile
+
28
−
24
View file @
f1fc8004
...
...
@@ -45,7 +45,6 @@ depends:
dependsLinux
:
@
sudo
apt
install
golang pkg-config dh-golang golang-golang-x-text-dev cmake devscripts fakeroot debhelper curl g++ qt5-qmake qttools5-dev-tools qtdeclarative5-dev qml-module-qtquick-controls libqt5qml5 qtdeclarative5-dev qml-module-qt-labs-platform qml-module-qt-labs-qmlmodels qml-module-qtquick-extras qml-module-qtquick-dialogs
@
make
-C
docker deps
@
# debian needs also: snap install snapcraft --classic; snap install multipass --beta --classic
...
...
@@ -54,14 +53,17 @@ dependsDarwin:
@
brew
install
python3 golang make pkg-config curl
@
brew
install
--default-names
gnu-sed
build
:
build_helper
@
gui/build.sh
golib
:
CGO_ENABLED
=
1 go build
-buildmode
=
c-archive
-o
${
TARGET_GOLIB
}
${
SOURCE_GOLIB
}
build_helper
:
@
echo
"PLATFORM:
${
PLATFORM
}
"
@
mkdir
-p
build/bin/
${
PLATFORM
}
go build
-o
build/bin/
${
PLATFORM
}
/bitmask-helper
-ldflags
"-X main.AppName=
${
PROVIDER
}
VPN -X main.Version=
${
VERSION
}
"
./cmd/bitmask-helper/
build
:
build_helper
@
gui/build.sh
build_old
:
ifeq
(${XBUILD}, yes)
$(
MAKE
)
build_cross_win
...
...
@@ -77,28 +79,13 @@ else
@gui/build.sh
endif
build_installer
:
build
# TODO check for binarycreator in path
cp
-r
qtbuild/release/
${
PROVIDER
}
-vpn
.app installer/packages/
${
PROVIDER
}
vpn/data/
cp
build/bin/
${
PLATFORM
}
/bitmask-helper installer/packages/
${
PROVIDER
}
vpn/data/
cd
installer
&&
qmake
&&
make
build_old_%
:
@
echo
"PLATFORM:
${
PLATFORM
}
"
@
mkdir
-p
build/bin/
${
PLATFORM
}
go build
-tags
$(
TAGS
)
-ldflags
"-s -w -X main.version=
`
git describe
--tags
`
${
EXTRA_LDFLAGS
}
"
-o
build/bin/
${
PLATFORM
}
/
$*
./cmd/
$*
-
@rm
-rf
build/
${
PROVIDER
}
/staging/
${
PLATFORM
}
&&
mkdir
-p
build/
${
PROVIDER
}
/staging/
${
PLATFORM
}
-
@ln
-s
../../../bin/
${
PLATFORM
}
/
$*
build/
${
PROVIDER
}
/staging/
${
PLATFORM
}
/
$*
test
:
@
go
test
-tags
"integration
$(
TAGS
)
"
./pkg/...
golib
:
CGO_ENABLED
=
1 go build
-buildmode
=
c-archive
-o
${
TARGET_GOLIB
}
${
SOURCE_GOLIB
}
test_ui
:
golib
@
qmake
-o
tests/Makefile test.pro
@
make
-C
tests clean
@
make
-C
tests
@
./tests/build/test_ui
build_win
:
powershell
-Command
'$$version=git describe --tags; go build -ldflags "-H windowsgui -X main.version=$$version" ./cmd/*'
# ----------- FIXME ------- old build, reuse or delete -----------------------------
CROSS_WIN_FLAGS
=
CGO_ENABLED
=
1
GOARCH
=
386
GOOS
=
windows
CC
=
"/usr/bin/i686-w64-mingw32-gcc"
CGO_LDFLAGS
=
"-lssp"
CXX
=
"i686-w64-mingw32-c++"
PLATFORM_WIN
=
PLATFORM
=
windows
...
...
@@ -123,6 +110,8 @@ _build_xbuild_done:
@
echo
@
echo
'Done. You can do "make packages" now.'
# --------- FIXME -----------------------------------------------------------------------
clean
:
@
rm
-rf
build/
@
unlink
branding/assets/default
...
...
@@ -134,6 +123,21 @@ clean:
build_all_providers
:
branding/scripts/build-all-providers
########################################################################
# tests
#########################################################################
test
:
@
go
test
-tags
"integration
$(
TAGS
)
"
./pkg/...
test_ui
:
golib
@
qmake
-o
tests/Makefile test.pro
@
make
-C
tests clean
@
make
-C
tests
@
./tests/build/test_ui
#########################################################################
# packaging templates
#########################################################################
...
...
This diff is collapsed.
Click to expand it.
installer/bitmask-installer.pro
+
12
−
1
View file @
f1fc8004
...
...
@@ -17,5 +17,16 @@ OTHER_FILES += \
packages
/
riseupvpn
/
meta
/
package
.
xml
\
packages
/
riseupvpn
/
meta
/
install
.
js
\
packages
/
riseupvpn
/
data
/
README
.
txt
\
packages
/
riseupvpn
/
data
/
riseup
-
vpn
macx
{
OTHER_FILES
+=
"packages/riseupvpn/data/riseup-vpn.app"
OTHER_FILES
+=
"packages/riseupvpn/data/bitmask-helper"
}
linux
{
OTHER_FILES
+=
"packages/riseupvpn/data/riseup-vpn"
OTHER_FILES
+=
"packages/riseupvpn/data/bitmask-helper"
}
win32
{
OTHER_FILES
+=
"packages/riseupvpn/data/riseup-vpn.exe"
OTHER_FILES
+=
"packages/riseupvpn/data/helper.exe"
}
This diff is collapsed.
Click to expand it.
installer/packages/riseupvpn/data/README.txt
+
3
−
1
View file @
f1fc8004
RiseupVPN README
This is the RiseupVPN README.
It should be replaced with something more meaningful
(give links to issue tracker, repos, uninstaller etc).
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment