mirror of
https://github.com/dnote/dnote
synced 2026-03-14 22:45:50 +01:00
Properly embed static files into binary (#309)
* Properly embed static files into binary * Document change
This commit is contained in:
parent
22a4006efe
commit
b699f1a643
2 changed files with 13 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue