-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
91 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,8 @@ _testmain.go | |
*.exe | ||
*.exe~ | ||
mindoc | ||
mindoc_linux_amd64 | ||
mindoc_linux_musl_amd64 | ||
database | ||
*.test | ||
*.prof | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
rm mindoc_linux_amd64 mindoc_linux_musl_amd64 | ||
rm -rf ../mindoc_linux_amd64/ | ||
|
||
export GOARCH=amd64 | ||
export GOOS=linux | ||
export CC=/usr/bin/gcc | ||
|
||
export TRAVIS_TAG=v2.1-beta.6 | ||
|
||
go mod tidy -v | ||
go build -v -o mindoc_linux_amd64 -ldflags="-linkmode external -extldflags '-static' -w -X 'github.com/mindoc-org/mindoc/conf.VERSION=$TRAVIS_TAG' -X 'github.com/mindoc-org/mindoc/conf.BUILD_TIME=`date`' -X 'github.com/mindoc-org/mindoc/conf.GO_VERSION=`go version`'" | ||
./mindoc_linux_amd64 version | ||
|
||
mkdir ../mindoc_linux_amd64 | ||
cp -r * ../mindoc_linux_amd64 | ||
cd ../mindoc_linux_amd64 | ||
rm -rf cache commands controllers converter .git .github graphics mail models routers utils runtime | ||
rm appveyor.yml docker-compose.yml Dockerfile .travis.yml .gitattributes .gitignore go.mod go.sum main.go README.md simsun.ttc start.sh sync_host.sh build_amd64.sh build_musl_amd64.sh | ||
zip -r mindoc_linux_amd64.zip conf static uploads views lib mindoc_linux_amd64 favicon.ico LICENSE.md | ||
mv ./mindoc_linux_amd64.zip ../ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
rm mindoc_linux_musl_amd64 mindoc_linux_amd64 | ||
rm -rf ../mindoc_linux_musl_amd64/ | ||
|
||
export GOARCH=amd64 | ||
export GOOS=linux | ||
export CC=/usr/local/musl/bin/musl-gcc | ||
|
||
export TRAVIS_TAG=v2.1-beta.6 | ||
|
||
go mod tidy -v | ||
go build -v -o mindoc_linux_musl_amd64 -ldflags="-linkmode external -extldflags '-static' -w -X 'github.com/mindoc-org/mindoc/conf.VERSION=$TRAVIS_TAG' -X 'github.com/mindoc-org/mindoc/conf.BUILD_TIME=`date`' -X 'github.com/mindoc-org/mindoc/conf.GO_VERSION=`go version`'" | ||
./mindoc_linux_musl_amd64 version | ||
|
||
mkdir ../mindoc_linux_musl_amd64 | ||
cp -r * ../mindoc_linux_musl_amd64 | ||
cd ../mindoc_linux_musl_amd64 | ||
rm -rf cache commands controllers converter .git .github graphics mail models routers utils runtime | ||
rm appveyor.yml docker-compose.yml Dockerfile .travis.yml .gitattributes .gitignore go.mod go.sum main.go README.md simsun.ttc start.sh sync_host.sh build_amd64.sh build_musl_amd64.sh | ||
zip -r mindoc_linux_musl_amd64.zip conf static uploads views lib mindoc_linux_musl_amd64 favicon.ico LICENSE.md | ||
mv ./mindoc_linux_musl_amd64.zip ../ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters