Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Acme Downloader
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Geant DevOps
Acme Downloader
Commits
ce4b75f7
Unverified
Commit
ce4b75f7
authored
4 years ago
by
Max Adamo
Browse files
Options
Downloads
Patches
Plain Diff
add build instruction for windows and mac
parent
aaec0050
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
.gitignore
+2
-1
2 additions, 1 deletion
.gitignore
README.md
+18
-0
18 additions, 0 deletions
README.md
build.sh
+3
-0
3 additions, 0 deletions
build.sh
with
23 additions
and
1 deletion
.gitignore
+
2
−
1
View file @
ce4b75f7
.*.sw[op]
.DS_Store
acme-downloader
\ No newline at end of file
acme-downloader
acme-downloader.exe
\ No newline at end of file
This diff is collapsed.
Click to expand it.
README.md
+
18
−
0
View file @
ce4b75f7
...
...
@@ -51,4 +51,22 @@ Debian/RedHat/Arch OS families
## build
### From Linux for Linux
you can use
`build.sh`
from this repo
### From Linux for Windows
```
bash
PROG_VERSION
=
"1.0"
BUILDTIME
=
$(
date
-u
'+%Y-%m-%d_%H:%M:%S'
)
env
GOOS
=
windows
GOARCH
=
amd64 go build
-ldflags
"-s -w -X main.appVersion=
${
PROG_VERSION
}
-X main.buildTime=
${
BUILDTIME
}
"
.
```
### From Linux for MacOS (not tested)
```
bash
PROG_VERSION
=
"1.0"
BUILDTIME
=
$(
date
-u
'+%Y-%m-%d_%H:%M:%S'
)
env
GOOS
=
darwin
GOARCH
=
amd64 go build
-ldflags
"-s -w -X main.appVersion=
${
PROG_VERSION
}
-X main.buildTime=
${
BUILDTIME
}
"
.
```
This diff is collapsed.
Click to expand it.
build.sh
+
3
−
0
View file @
ce4b75f7
#!/bin/bash
#
# for windows and Mac check the README
#
BIN_NAME
=
acme-downloader
PATH
=
$PATH
:
$(
go
env
GOPATH
)
/bin
GOPATH
=
$(
go
env
GOPATH
)
...
...
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