Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
go-reproducer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
briar
go-reproducer
Commits
949fa627
Verified
Commit
949fa627
authored
6 years ago
by
Torsten Grote
Browse files
Options
Downloads
Patches
Plain Diff
Use deterministic permissions to prevent differences in zip files
parent
c7a6346c
No related branches found
No related tags found
No related merge requests found
Pipeline
#2985
passed
6 years ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
build-obfs4proxy.py
+4
-0
4 additions, 0 deletions
build-obfs4proxy.py
with
4 additions
and
0 deletions
build-obfs4proxy.py
+
4
−
0
View file @
949fa627
...
@@ -116,6 +116,9 @@ def build_android_arch(versions, env, tool, ndk_arch, pie):
...
@@ -116,6 +116,9 @@ def build_android_arch(versions, env, tool, ndk_arch, pie):
ex
([
'
go
'
,
'
build
'
,
'
-buildmode=%s
'
%
build_mode
,
'
-ldflags
'
,
'
-w -s
'
+
extldflags
]
+
GO_FLAGS
+
ex
([
'
go
'
,
'
build
'
,
'
-buildmode=%s
'
%
build_mode
,
'
-ldflags
'
,
'
-w -s
'
+
extldflags
]
+
GO_FLAGS
+
[
os
.
path
.
join
(
'
.
'
,
versions
[
'
build_path
'
])],
env
=
env
,
cwd
=
REPO_DIR
)
[
os
.
path
.
join
(
'
.
'
,
versions
[
'
build_path
'
])],
env
=
env
,
cwd
=
REPO_DIR
)
# use deterministic permissions to prevent differences in zip files
os
.
chmod
(
'
obfs4proxy
'
,
0o755
)
pie_suffix
=
'
_pie
'
if
pie
else
''
pie_suffix
=
'
_pie
'
if
pie
else
''
zip_files
([
'
obfs4proxy
'
],
'
obfs4proxy_%s%s.zip
'
%
(
ndk_arch
,
pie_suffix
))
zip_files
([
'
obfs4proxy
'
],
'
obfs4proxy_%s%s.zip
'
%
(
ndk_arch
,
pie_suffix
))
os
.
remove
(
'
obfs4proxy
'
)
os
.
remove
(
'
obfs4proxy
'
)
...
@@ -124,6 +127,7 @@ def build_android_arch(versions, env, tool, ndk_arch, pie):
...
@@ -124,6 +127,7 @@ def build_android_arch(versions, env, tool, ndk_arch, pie):
def
build_linux
(
versions
):
def
build_linux
(
versions
):
build_path
=
os
.
path
.
join
(
'
.
'
,
versions
[
'
build_path
'
])
build_path
=
os
.
path
.
join
(
'
.
'
,
versions
[
'
build_path
'
])
ex
([
'
go
'
,
'
build
'
,
'
-ldflags
'
,
'
-w -s
'
]
+
GO_FLAGS
+
[
build_path
],
cwd
=
REPO_DIR
)
ex
([
'
go
'
,
'
build
'
,
'
-ldflags
'
,
'
-w -s
'
]
+
GO_FLAGS
+
[
build_path
],
cwd
=
REPO_DIR
)
os
.
chmod
(
'
obfs4proxy
'
,
0o755
)
# use deterministic permissions
zip_files
([
'
obfs4proxy
'
],
'
obfs4proxy_linux-x86_64.zip
'
)
zip_files
([
'
obfs4proxy
'
],
'
obfs4proxy_linux-x86_64.zip
'
)
os
.
remove
(
'
obfs4proxy
'
)
os
.
remove
(
'
obfs4proxy
'
)
...
...
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