Properly embed static files into binary (#309)

* Properly embed static files into binary

* Document change
This commit is contained in:
Sung Won Cho 2019-11-12 13:20:43 +08:00 committed by GitHub
commit b699f1a643
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 1 deletions

View file

@ -10,6 +10,13 @@ All notable changes to the projects under this repository will be documented in
The following log documents the history of the server project.
### 0.3.1 - 2019-11-12
#### Fixed
- Fix static files not being embedded in the binary. (#309)
- Fix mobile menu not covering the whole screen. (#308)
### 0.3.0 - 2019-11-12
#### Added

View file

@ -29,6 +29,8 @@ build() {
platform=$1
arch=$2
pushd "$basedir"
destDir="$outputDir/$platform-$arch"
mkdir -p "$destDir"
@ -39,10 +41,12 @@ build() {
GOARCH="$arch" go build \
-o "$destDir/dnote-server" \
-ldflags "-X main.versionTag=$version" \
"$projectDir"/pkg/server/*.go
"$basedir"/*.go
packr2 clean
popd
# build tarball
tarballName="dnote_server_${version}_${platform}_${arch}.tar.gz"
tarballPath="$outputDir/$tarballName"
@ -56,6 +60,7 @@ build() {
pushd "$outputDir"
shasum -a 256 "$tarballName" >> "$outputDir/dnote_${version}_checksums.txt"
popd
}
build linux amd64