updates for client version

This commit is contained in:
sawka 2023-02-23 15:19:01 -08:00
parent 3d0ce6ea27
commit ea3e377f6c
3 changed files with 14 additions and 6 deletions

View File

@ -57,12 +57,13 @@ rm -rf bin/
rm -rf build/
node_modules/.bin/webpack --config webpack.prod.js
node_modules/.bin/webpack --config webpack.electron.prod.js
(cd ../mshell; GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w" -o ../sh2/bin/mshell/mshell-v0.2-darwin.amd64 main-mshell.go)
(cd ../mshell; GOOS=darwin GOARCH=arm64 go build -ldflags="-s -w" -o ../sh2/bin/mshell/mshell-v0.2-darwin.arm64 main-mshell.go)
(cd ../mshell; GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o ../sh2/bin/mshell/mshell-v0.2-linux.amd64 main-mshell.go)
(cd ../mshell; GOOS=linux GOARCH=arm64 go build -ldflags="-s -w" -o ../sh2/bin/mshell/mshell-v0.2-linux.arm64 main-mshell.go)
(cd ../sh2-server; GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w" -o ../sh2/build/prompt-local-server.amd64 cmd/main-server.go)
(cd ../sh2-server; GOOS=darwin GOARCH=arm64 go build -ldflags="-s -w" -o ../sh2/build/prompt-local-server.arm64 cmd/main-server.go)
GO_LDFLAGS="-s -w -X main.BuildTime=$(date +'%Y%m%d%H%M')"
(cd ../mshell; GOOS=darwin GOARCH=amd64 go build -ldflags="$GO_LDFLAGS" -o ../sh2/bin/mshell/mshell-v0.2-darwin.amd64 main-mshell.go)
(cd ../mshell; GOOS=darwin GOARCH=arm64 go build -ldflags="$GO_LDFLAGS" -o ../sh2/bin/mshell/mshell-v0.2-darwin.arm64 main-mshell.go)
(cd ../mshell; GOOS=linux GOARCH=amd64 go build -ldflags="$GO_LDFLAGS" -o ../sh2/bin/mshell/mshell-v0.2-linux.amd64 main-mshell.go)
(cd ../mshell; GOOS=linux GOARCH=arm64 go build -ldflags="$GO_LDFLAGS" -o ../sh2/bin/mshell/mshell-v0.2-linux.arm64 main-mshell.go)
(cd ../sh2-server; GOOS=darwin GOARCH=amd64 go build -ldflags="$GO_LDFLAGS" -o ../sh2/build/prompt-local-server.amd64 ./cmd)
(cd ../sh2-server; GOOS=darwin GOARCH=arm64 go build -ldflags="$GO_LDFLAGS" -o ../sh2/build/prompt-local-server.arm64 ./cmd)
lipo -create -output bin/prompt-local-server build/prompt-local-server.amd64 build/prompt-local-server.arm64
node_modules/.bin/electron-forge make
```

View File

@ -21,6 +21,11 @@ const ProdServerWsEndpoint = "ws://localhost:1623";
const DevServerEndpoint = "http://localhost:8090";
const DevServerWsEndpoint = "ws://localhost:8091";
// @ts-ignore
const VERSION = __PROMPT_VERSION__;
// @ts-ignore
const BUILD = __PROMPT_BUILD__;
type SWLinePtr = {
line : LineType,
@ -1946,6 +1951,7 @@ class Model {
remote : null,
winsize: null,
linenum: null,
build: VERSION + " " + BUILD,
};
let session = this.getActiveSession();
if (session != null) {

View File

@ -181,6 +181,7 @@ type UIContextType = {
remote : RemotePtrType,
winsize : TermWinSize,
linenum : number,
build : string,
};
type FeCmdPacketType = {