Skip to content

Commit

Permalink
Improved versioning build and release process.
Browse files Browse the repository at this point in the history
  • Loading branch information
fuglaro committed May 22, 2024
1 parent 9f4edb9 commit 57030f5
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
filet-cloud
filet-cloud-v*
builds/*
resources/deps
**.DS_Store
**.key
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ openssl req -x509 -newkey rsa:4096 -sha256 -days 1 -nodes -keyout my.key -out my
* You can normalise the quality value in the FC_JPEG_CMD if the command does not accept a normalised 1-100 quality range, like with ffmpeg: `FC_JPEG_CMD=ffmpeg -i PATH -q:v $((35-QUALITY/3)) -vf scale=WIDTH:-1 -update 1 -f image2 -vcodec mjpeg -`

# TODO (Current WIP)
* Test on another Android and note on android termux README.
* Installation enhancement pass:
* Wee-Mighty Deployment:
* Radxa ZERO 3W + BEEFY custom heatsink + 512 MicroSD + Crucial X9 Pro 4TB + fcgenthumb + Power Optimisation.
Expand All @@ -172,7 +173,6 @@ openssl req -x509 -newkey rsa:4096 -sha256 -days 1 -nodes -keyout my.key -out my
* HW Accelerated HS512 in JWT decoding.
* Nice shiny photo.
* Update demo video (on firefox for mac with darkmode for better styling) - switch to Mobile phone view to demo profile view..
* Tag easily deployable release for others with YYMM versioning and update all deps, with wide cross compiling ARM/x86/x64/RISC-V Linux/LinuxStaticMusl/Mac/Windows. Ensure nice build process fro cross compile.
* Add to xtermjs tools list.

# Wish List for Future Work
Expand Down
14 changes: 12 additions & 2 deletions build
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
#!/bin/bash
VER=v$(date '+%y.%m').$(git rev-parse --short HEAD~5 | xxd -r -p | base64)
GOARCH=arm GOARM=5 GOOS=linux go build -o filet-cloud-$VER-raspberry-pi
GOARCH=arm64 GOOS=android go build -o filet-cloud-$VER-android
mkdir -p builds
GOARCH=arm GOARM=5 GOOS=linux go build -ldflags "-X main.version=$VER" -o builds/filet-cloud-raspberry-pi
GOARCH=arm64 GOOS=android go build -ldflags "-X main.version=$VER" -o builds/filet-cloud-android
GOARCH=arm64 GOOS=darwin go build -ldflags "-X main.version=$VER" -o builds/filet-cloud-macos-apple
GOARCH=amd64 GOOS=darwin go build -ldflags "-X main.version=$VER" -o builds/filet-cloud-macos-intel
GOARCH=amd64 GOOS=linux go build -ldflags "-X main.version=$VER" -o builds/filet-cloud-linux-x64
GOARCH=386 GOOS=linux go build -ldflags "-X main.version=$VER" -o builds/filet-cloud-linux-x86
GOARCH=arm64 GOOS=linux go build -ldflags "-X main.version=$VER" -o builds/filet-cloud-linux-arm
GOARCH=riscv64 GOOS=linux go build -ldflags "-X main.version=$VER" -o builds/filet-cloud-linux-riscv
echo
echo "RELEASE: $VER"
echo
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ import (
//go:embed favicon.ico
var res embed.FS

var version string

var sshport = "22"
var upgrader = websocket.Upgrader{}
var privateKey = make([]byte, 512/8)
Expand Down Expand Up @@ -831,7 +833,7 @@ either FC_CERT_FILE and FC_KEY_FILE to be specified, or,
if you accept the LetsEncrypt Terms of Service, you can use the
automatic LetsEncrypt configuration by specifying FC_DOMAIN.
`)
VERSION: ` + version + "\n")
return
}

Expand Down

0 comments on commit 57030f5

Please sign in to comment.