Compare commits

..

2 Commits

Author SHA1 Message Date
Red Adaya 5ccb1cb2ac fix wrong colors 2024-02-23 10:54:33 +08:00
Red Adaya 6e3ab22a07 initial implementation for lines.less 2024-02-22 22:17:53 +08:00
128 changed files with 2283 additions and 2238 deletions
+61 -36
View File
@@ -1,35 +1,69 @@
name: "Build Helper" name: "Build Helper"
on: workflow_dispatch on: workflow_dispatch
env: env:
WAVETERM_VERSION: 0.6.1
GO_VERSION: "1.21.5" GO_VERSION: "1.21.5"
NODE_VERSION: "21.5.0" NODE_VERSION: "21.5.0"
jobs: jobs:
runbuild: runbuild-darwin-x64:
outputs: name: "Build MacOS x64"
WAVETERM_VERSION: ${{ steps.set-version.outputs.WAVETERM_VERSION }} runs-on: macos-latest
strategy: steps:
matrix: - uses: actions/checkout@v4
include: - uses: actions/setup-go@v4
- platform: "darwin" with:
arch: "x64" go-version: ${{env.GO_VERSION}}
runner: "macos-latest" cache-dependency-path: |
scripthaus: "build-package" wavesrv/go.sum
- platform: "darwin" waveshell/go.sum
arch: "arm64" - run: brew tap scripthaus-dev/scripthaus
runner: "macos-latest-xlarge" - run: brew install scripthaus
scripthaus: "build-package" - uses: actions/setup-node@v4
- platform: "linux" with:
arch: "x64" node-version: ${{env.NODE_VERSION}}
runner: "ubuntu-latest" cache: "yarn"
scripthaus: "build-package-linux" - run: yarn --frozen-lockfile
runs-on: ${{ matrix.runner }} - run: scripthaus run build-package
- uses: actions/upload-artifact@v4
with:
name: waveterm-build-darwin-x64
path: out/make/zip/darwin/x64/*.zip
retention-days: 2
runbuild-darwin-arm64:
name: "Build MacOS arm64"
runs-on: macos-latest-xlarge
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: |
wavesrv/go.sum
waveshell/go.sum
- run: brew tap scripthaus-dev/scripthaus
- run: brew install scripthaus
- uses: actions/setup-node@v4
with:
node-version: ${{env.NODE_VERSION}}
cache: "yarn"
- run: yarn --frozen-lockfile
- run: scripthaus run build-package
- uses: actions/upload-artifact@v4
with:
name: waveterm-build-darwin-arm64
path: out/make/zip/darwin/arm64/*.zip
retention-days: 2
runbuild-linux:
name: "Build Linux x64"
runs-on: ubuntu-latest
needs: [runbuild-darwin-x64, runbuild-darwin-arm64]
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
repository: scripthaus-dev/scripthaus repository: scripthaus-dev/scripthaus
path: scripthaus path: scripthaus
- uses: actions/setup-go@v5 - uses: actions/setup-go@v4
with: with:
go-version: ${{env.GO_VERSION}} go-version: ${{env.GO_VERSION}}
cache-dependency-path: | cache-dependency-path: |
@@ -45,31 +79,22 @@ jobs:
with: with:
node-version: ${{env.NODE_VERSION}} node-version: ${{env.NODE_VERSION}}
cache: "yarn" cache: "yarn"
- id: set-version
run: |
VERSION=$(node -e 'console.log(require("./version.js"))')
echo "WAVETERM_VERSION=${VERSION}" >> "$GITHUB_OUTPUT"
- run: yarn --frozen-lockfile - run: yarn --frozen-lockfile
- run: ./scripthaus/scripthaus run ${{ matrix.scripthaus }} - run: ./scripthaus/scripthaus run build-package-linux
- uses: actions/upload-artifact@v4
with:
name: waveterm-build-${{ matrix.platform }}-${{ matrix.arch }}
path: out/make/zip/${{ matrix.platform }}/${{ matrix.arch }}/*.zip
retention-days: 2
upload:
name: "Upload Builds"
runs-on: ubuntu-latest
needs: [runbuild]
steps:
- uses: actions/download-artifact@v4 - uses: actions/download-artifact@v4
with: with:
merge-multiple: true merge-multiple: true
path: buildtemp path: buildtemp
- run: | - run: |
echo "${{ needs.runbuild.outputs.WAVETERM_VERSION }}" > buildtemp/version.txt mv out/make/zip/linux/x64/Wave-linux-x64-$WAVETERM_VERSION.zip buildtemp/waveterm-linux-x64-v$WAVETERM_VERSION.zip
- run: (cd buildtemp; zip ../waveterm-builds.zip *) - run: (cd buildtemp; zip ../waveterm-builds.zip *)
- run: aws s3 cp waveterm-builds.zip s3://waveterm-github-artifacts/ - run: aws s3 cp waveterm-builds.zip s3://waveterm-github-artifacts/
env: env:
AWS_ACCESS_KEY_ID: "${{ secrets.S3_USERID }}" AWS_ACCESS_KEY_ID: "${{ secrets.S3_USERID }}"
AWS_SECRET_ACCESS_KEY: "${{ secrets.S3_SECRETKEY }}" AWS_SECRET_ACCESS_KEY: "${{ secrets.S3_SECRETKEY }}"
AWS_DEFAULT_REGION: us-west-2 AWS_DEFAULT_REGION: us-west-2
- uses: actions/upload-artifact@v4
with:
name: waveterm-builds
path: buildtemp
retention-days: 2
+56 -55
View File
@@ -12,69 +12,70 @@
name: "CodeQL" name: "CodeQL"
on: on:
push: push:
branches: ["main"] branches: [ "main" ]
pull_request: pull_request:
branches: ["main"] branches: [ "main" ]
schedule: schedule:
- cron: "36 5 * * 5" - cron: '36 5 * * 5'
jobs: jobs:
analyze: analyze:
name: Analyze name: Analyze
# Runner size impacts CodeQL analysis time. To learn more, please see: # Runner size impacts CodeQL analysis time. To learn more, please see:
# - https://gh.io/recommended-hardware-resources-for-running-codeql # - https://gh.io/recommended-hardware-resources-for-running-codeql
# - https://gh.io/supported-runners-and-hardware-resources # - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners # - https://gh.io/using-larger-runners
# Consider using larger runners for possible analysis time improvements. # Consider using larger runners for possible analysis time improvements.
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }} timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
permissions: permissions:
actions: read actions: read
contents: read contents: read
security-events: write security-events: write
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
language: ["go", "javascript-typescript"] language: [ 'go', 'javascript-typescript' ]
# CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ] # CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ]
# Use only 'java-kotlin' to analyze code written in Java, Kotlin or both # Use only 'java-kotlin' to analyze code written in Java, Kotlin or both
# Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both # Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v3
# Initializes the CodeQL tools for scanning. # Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL - name: Initialize CodeQL
uses: github/codeql-action/init@v3 uses: github/codeql-action/init@v3
with: with:
languages: ${{ matrix.language }} languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file. # If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file. # By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file. # Prefix the list here with "+" to use these queries and those in the config file.
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality # queries: security-extended,security-and-quality
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v3
# ℹ️ Command-line programs to run using the OS shell. # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun # If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v3
# If the Autobuild fails above, remove it and uncomment the following three lines. # ℹ️ Command-line programs to run using the OS shell.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
# - run: | # If the Autobuild fails above, remove it and uncomment the following three lines.
# echo "Run, Build Application using script" # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
# ./location_of_script_within_repo/buildscript.sh
- name: Perform CodeQL Analysis # - run: |
uses: github/codeql-action/analyze@v3 # echo "Run, Build Application using script"
with: # ./location_of_script_within_repo/buildscript.sh
category: "/language:${{matrix.language}}"
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
+3 -3
View File
@@ -1,8 +1,8 @@
<p align="center"> <p align="center">
<picture> <picture>
<source media="(prefers-color-scheme: dark)" srcset="./assets/waveterm-logo-horizontal-dark.png"> <source media="(prefers-color-scheme: dark)" srcset="./assets/wave-logo_horizontal-coloronblack.svg">
<source media="(prefers-color-scheme: light)" srcset="./assets/waveterm-logo-horizontal-light.png"> <source media="(prefers-color-scheme: light)" srcset="./assets/wave-logo_horizontal-coloronwhite.svg">
<img alt="Wave Terminal Logo" src="./assets/waveterm-logo-horizontal-light.png" width="240" height="80" style="max-width: 100%;"> <img alt="Wave Terminal Logo" src="./assets/wave-logo_horizontal-coloronwhite.svg" width="352" height="59" style="max-width: 100%;">
</picture> </picture>
<br/> <br/>
</p> </p>
+4 -4
View File
@@ -179,11 +179,11 @@ THE SOFTWARE.
----- -----
## github.com/google/go-github/v59/github ## github.com/google/go-github/v57/github
* Name: github.com/google/go-github/v59/github * Name: github.com/google/go-github/v57/github
* Version: v59.0.0 * Version: v57.0.0
* License: [BSD-3-Clause](https://github.com/google/go-github/blob/v59.0.0/LICENSE) * License: [BSD-3-Clause](https://github.com/google/go-github/blob/v57.0.0/LICENSE)
```txt ```txt
Copyright (c) 2013 The go-github AUTHORS. All rights reserved. Copyright (c) 2013 The go-github AUTHORS. All rights reserved.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 110 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 116 KiB

+2 -2
View File
@@ -1,3 +1,3 @@
*/ temp/
*.zip *.zip
*.dmg *.dmg
+3 -3
View File
@@ -1,9 +1,9 @@
const eu = require("@electron/universal"); const eu = require("@electron/universal");
const path = require("path"); const path = require("path");
const x64Path = path.resolve(__dirname, "temp", "x64", "Wave.app"); let x64Path = path.resolve(__dirname, "temp", "x64", "Wave.app")
const arm64Path = path.resolve(__dirname, "temp", "arm64", "Wave.app"); let arm64Path = path.resolve(__dirname, "temp", "arm64", "Wave.app")
const outPath = path.resolve(__dirname, "temp", "Wave.app"); let outPath = path.resolve(__dirname, "temp", "Wave.app")
console.log("building universal package"); console.log("building universal package");
console.log("x64 path", x64Path); console.log("x64 path", x64Path);
+41 -76
View File
@@ -1,19 +1,11 @@
#!/bin/bash #!/bin/bash
# This script is used to build the universal app for macOS
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) # assumes we have Wave-darwin-x64-[version].zip and Wave-darwin-arm64-[version].zip in current directory
VERSION=0.6.1
rm -f *.zip *.dmg rm -rf temp
ZIP_DIR=$SCRIPT_DIR/zip rm -rf builds
rm -rf $ZIP_DIR mkdir temp
mkdir $ZIP_DIR mkdir temp/x64
TEMP_DIR=$SCRIPT_DIR/temp
rm -rf $TEMP_DIR
mkdir $TEMP_DIR
BUILDS_DIR=$SCRIPT_DIR/builds
rm -rf $BUILDS_DIR
# Download the builds zip
aws s3 cp s3://waveterm-github-artifacts/waveterm-builds.zip . aws s3 cp s3://waveterm-github-artifacts/waveterm-builds.zip .
BUILDS_ZIP=waveterm-builds.zip BUILDS_ZIP=waveterm-builds.zip
if ! [ -f $BUILDS_ZIP ]; then if ! [ -f $BUILDS_ZIP ]; then
@@ -21,66 +13,40 @@ if ! [ -f $BUILDS_ZIP ]; then
exit 1; exit 1;
fi fi
echo "unzipping $BUILDS_ZIP" echo "unzipping $BUILDS_ZIP"
unzip -q $BUILDS_ZIP -d $BUILDS_DIR unzip -q $BUILDS_ZIP -d builds
rm $BUILDS_ZIP X64_ZIP="builds/Wave-darwin-x64-$VERSION.zip"
ARM64_ZIP="builds/Wave-darwin-arm64-$VERSION.zip"
# Ensure we have exactly one of each build if ! [ -f $X64_ZIP ]; then
find_build() echo "no $X64_ZIP found";
{ exit 1;
local BUILD_DIR=$1 fi
local BUILD_PATTERN=$2 if ! [ -f $ARM64_ZIP ]; then
local BUILD_PATH=$(find $BUILD_DIR -type f -iname "$BUILD_PATTERN") echo "no $ARM64_ZIP found"
local NUM_MATCHES=$(echo $BUILD_PATH | wc -l) exit 1;
if [ "0" -eq "$NUM_MATCHES" ]; then fi
echo "no $BUILD_NAME found in $BUILD_DIR"
exit 1
elif [ "1" -lt "$NUM_MATCHES" ]; then
echo "multiple $BUILD_NAME found in $BUILD_DIR"
exit 1
fi
echo $BUILD_PATH
}
X64_ZIP=$(find_build $BUILDS_DIR "Wave-darwin-x64-*.zip")
ARM64_ZIP=$(find_build $BUILDS_DIR "Wave-darwin-arm64-*.zip")
set -e set -e
echo "unzipping version v$VERSION zip files"
echo "unzipping zip files" ls -l "$X64_ZIP" "$ARM64_ZIP"
unzip -q $X64_ZIP -d $TEMP_DIR/x64 unzip -q $X64_ZIP -d temp/x64
unzip -q $ARM64_ZIP -d $TEMP_DIR/arm64 mkdir temp/arm64
rm $ARM64_ZIP $X64_ZIP unzip -q $ARM64_ZIP -d temp/arm64
lipo -create -output temp/wavesrv temp/x64/Wave.app/Contents/Resources/app/bin/wavesrv temp/arm64/Wave.app/Contents/Resources/app/bin/wavesrv
# Create universal app and sign and notarize it rm -rf temp/arm64/Wave.app/Contents/Resources/app
TEMP_WAVE_DIR_ARM=$TEMP_DIR/x64/Wave.app mv temp/x64/Wave.app/Contents/Resources/app temp/
TEMP_WAVE_DIR_X64=$TEMP_DIR/arm64/Wave.app cp temp/wavesrv temp/app/bin/wavesrv
TEMP_WAVE_DIR_UNIVERSAL=$TEMP_DIR/Wave.app mkdir temp/x64/Wave.app/Contents/Resources/app
lipo -create -output $TEMP_DIR/wavesrv $TEMP_WAVE_DIR_X64/Contents/Resources/app/bin/wavesrv $TEMP_WAVE_DIR_ARM/Contents/Resources/app/bin/wavesrv mkdir temp/arm64/Wave.app/Contents/Resources/app
rm -rf $TEMP_WAVE_DIR_ARM/Contents/Resources/app node build-universal.js
mv $TEMP_WAVE_DIR_X64/Contents/Resources/app $TEMP_DIR rm -rf temp/Wave.app/Contents/Resources/app
cp $TEMP_DIR/wavesrv $TEMP_DIR/app/bin/wavesrv mv temp/app temp/Wave.app/Contents/Resources/app
mkdir $TEMP_WAVE_DIR_ARM/Contents/Resources/app node osx-sign.js
mkdir $TEMP_WAVE_DIR_X64/Contents/Resources/app DEBUG=electron-notarize node osx-notarize.js
node $SCRIPT_DIR/build-universal.js
rm -rf $TEMP_WAVE_DIR_UNIVERSAL/Contents/Resources/app
mv $TEMP_DIR/app $TEMP_WAVE_DIR_UNIVERSAL/Contents/Resources/app
node $SCRIPT_DIR/osx-sign.js
DEBUG=electron-notarize node $SCRIPT_DIR/osx-notarize.js
echo "universal app creation success (build/sign/notarize)" echo "universal app creation success (build/sign/notarize)"
UVERSION=$(cat $BUILDS_DIR/version.txt)
DMG_NAME="waveterm-macos-universal-${UVERSION}.dmg"
ZIP_NAME="Wave-macos-universal-${UVERSION}.zip"
echo "creating universal zip"
ditto $TEMP_WAVE_DIR_UNIVERSAL $ZIP_DIR/Wave.app
cd $ZIP_DIR
zip -9yqr $ZIP_NAME Wave.app
mv $ZIP_NAME $BUILDS_DIR/
cd $SCRIPT_DIR
# Expects create-dmg repo to be cloned in the same parent directory as the waveterm repo.
echo "creating universal dmg" echo "creating universal dmg"
$SCRIPT_DIR/../../create-dmg/create-dmg \ rm -f *.dmg
DMG_VERSION=$(node -e 'console.log(require("../version.js"))')
DMG_NAME="waveterm-macos-universal-${DMG_VERSION}.dmg"
../../create-dmg/create-dmg \
--volname "WaveTerm" \ --volname "WaveTerm" \
--window-pos 200 120 \ --window-pos 200 120 \
--window-size 600 300 \ --window-size 600 300 \
@@ -89,9 +55,8 @@ $SCRIPT_DIR/../../create-dmg/create-dmg \
--hide-extension "Wave.app" \ --hide-extension "Wave.app" \
--app-drop-link 400 125 \ --app-drop-link 400 125 \
$DMG_NAME \ $DMG_NAME \
"$TEMP_WAVE_DIR_UNIVERSAL" "temp/Wave.app"
echo "success, created $DMG_NAME" echo "success, created $DMG_NAME"
mv $DMG_NAME $BUILDS_DIR/ mv $DMG_NAME builds/
spctl -a -vvv -t install $TEMP_WAVE_DIR_UNIVERSAL/ rm builds/Wave-darwin-*.zip
spctl -a -vvv -t install temp/Wave.app/
rm -rf $TEMP_DIR $ZIP_DIR
+9 -13
View File
@@ -1,18 +1,14 @@
const { notarize } = require("@electron/notarize"); const { notarize } = require('@electron/notarize');
const path = require("path"); // DEBUG=electron-notarize
console.log("running osx-notarize"); console.log("running osx-notarize");
const waveAppPath = path.resolve(__dirname, "temp", "Wave.app");
notarize({ notarize({
appPath: waveAppPath, appPath: "temp/Wave.app",
tool: "notarytool", tool: "notarytool",
keychainProfile: "notarytool-creds", keychainProfile: "notarytool-creds",
}) }).then(() => {
.then(() => { console.log("notarize success");
console.log("notarize success"); }).catch((e) => {
}) console.log("notarize error", e);
.catch((e) => { process.exit(1);
console.log("notarize error", e); });
process.exit(1);
});
+9 -11
View File
@@ -1,10 +1,10 @@
const { signAsync } = require("@electron/osx-sign"); const { signAsync } = require("@electron/osx-sign");
const path = require("path"); // DEBUG="electron-osx-sign*"
console.log("running osx-sign"); console.log("running osx-sign");
const waveAppPath = path.resolve(__dirname, "temp", "Wave.app"); let waveAppPath = "temp/Wave.app";
signAsync({ signAsync({
app: waveAppPath, app: "temp/Wave.app",
binaries: [ binaries: [
waveAppPath + "/Contents/Resources/app/bin/wavesrv", waveAppPath + "/Contents/Resources/app/bin/wavesrv",
waveAppPath + "/Contents/Resources/app/bin/mshell/mshell-v0.4-linux.amd64", waveAppPath + "/Contents/Resources/app/bin/mshell/mshell-v0.4-linux.amd64",
@@ -12,11 +12,9 @@ signAsync({
waveAppPath + "/Contents/Resources/app/bin/mshell/mshell-v0.4-darwin.amd64", waveAppPath + "/Contents/Resources/app/bin/mshell/mshell-v0.4-darwin.amd64",
waveAppPath + "/Contents/Resources/app/bin/mshell/mshell-v0.4-darwin.arm64", waveAppPath + "/Contents/Resources/app/bin/mshell/mshell-v0.4-darwin.arm64",
], ],
}) }).then(() => {
.then(() => { console.log("signing success");
console.log("signing success"); }).catch((e) => {
}) console.log("signing error", e);
.catch((e) => { process.exit(1);
console.log("signing error", e); });
process.exit(1);
});
-1
View File
@@ -1,4 +1,3 @@
github.com/aws/aws-sdk-go-v2/service/s3 v1.27.11 h1:3/gm/JTX9bX8CpzTgIlrtYpB3EVBDxyg/GY/QdcIEZw=
github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=
github.com/kevinburke/ssh_config v1.2.0 h1:x584FjTGwHzMwvHx18PXxbBVzfnxogHaAReU4gf13a4= github.com/kevinburke/ssh_config v1.2.0 h1:x584FjTGwHzMwvHx18PXxbBVzfnxogHaAReU4gf13a4=
github.com/kevinburke/ssh_config v1.2.0/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM= github.com/kevinburke/ssh_config v1.2.0/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM=
+1 -2
View File
@@ -2,7 +2,7 @@
"name": "waveterm", "name": "waveterm",
"author": "Command Line Inc", "author": "Command Line Inc",
"productName": "Wave", "productName": "Wave",
"version": "v0.6.1", "version": "0.6.1",
"main": "dist/emain.js", "main": "dist/emain.js",
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
@@ -72,7 +72,6 @@
"copy-webpack-plugin": "^11.0.0", "copy-webpack-plugin": "^11.0.0",
"css-loader": "^6.7.1", "css-loader": "^6.7.1",
"electron": "28.1.3", "electron": "28.1.3",
"electron-devtools-installer": "^3.2.0",
"file-loader": "^6.2.0", "file-loader": "^6.2.0",
"http-server": "^14.1.1", "http-server": "^14.1.1",
"less": "^4.1.2", "less": "^4.1.2",
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+1
View File
@@ -13,6 +13,7 @@
</head> </head>
<body> <body>
<div id="measure"></div> <div id="measure"></div>
<div id="title-bar"></div>
<div id="app"></div> <div id="app"></div>
</body> </body>
</html> </html>
+1
View File
@@ -13,6 +13,7 @@
</head> </head>
<body> <body>
<div id="measure"></div> <div id="measure"></div>
<div id="title-bar"></div>
<div id="app"></div> <div id="app"></div>
</body> </body>
</html> </html>
+4 -7
View File
@@ -27,7 +27,7 @@ node_modules/.bin/electron-rebuild
```bash ```bash
# @scripthaus command electron # @scripthaus command electron
# @scripthaus cd :playbook # @scripthaus cd :playbook
WAVETERM_DEV=1 UPGRADE_EXTENSIONS=1 PCLOUD_ENDPOINT="https://ot2e112zx5.execute-api.us-west-2.amazonaws.com/dev" PCLOUD_WS_ENDPOINT="wss://5lfzlg5crl.execute-api.us-west-2.amazonaws.com/dev/" node_modules/.bin/electron dist-dev/emain.js WAVETERM_DEV=1 PCLOUD_ENDPOINT="https://ot2e112zx5.execute-api.us-west-2.amazonaws.com/dev" PCLOUD_WS_ENDPOINT="wss://5lfzlg5crl.execute-api.us-west-2.amazonaws.com/dev/" node_modules/.bin/electron dist-dev/emain.js
``` ```
```bash ```bash
@@ -43,13 +43,12 @@ rm -rf dist/
rm -rf bin/ rm -rf bin/
rm -rf build/ rm -rf build/
node_modules/.bin/webpack --env prod node_modules/.bin/webpack --env prod
WAVESRV_VERSION=$(node -e 'console.log(require("./version.js"))')
GO_LDFLAGS="-s -w -X main.BuildTime=$(date +'%Y%m%d%H%M')" GO_LDFLAGS="-s -w -X main.BuildTime=$(date +'%Y%m%d%H%M')"
(cd waveshell; CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags="$GO_LDFLAGS" -o ../bin/mshell/mshell-v0.4-darwin.amd64 main-waveshell.go) (cd waveshell; CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags="$GO_LDFLAGS" -o ../bin/mshell/mshell-v0.4-darwin.amd64 main-waveshell.go)
(cd waveshell; CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -ldflags="$GO_LDFLAGS" -o ../bin/mshell/mshell-v0.4-darwin.arm64 main-waveshell.go) (cd waveshell; CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -ldflags="$GO_LDFLAGS" -o ../bin/mshell/mshell-v0.4-darwin.arm64 main-waveshell.go)
(cd waveshell; CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="$GO_LDFLAGS" -o ../bin/mshell/mshell-v0.4-linux.amd64 main-waveshell.go) (cd waveshell; CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="$GO_LDFLAGS" -o ../bin/mshell/mshell-v0.4-linux.amd64 main-waveshell.go)
(cd waveshell; CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags="$GO_LDFLAGS" -o ../bin/mshell/mshell-v0.4-linux.arm64 main-waveshell.go) (cd waveshell; CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags="$GO_LDFLAGS" -o ../bin/mshell/mshell-v0.4-linux.arm64 main-waveshell.go)
(cd wavesrv; CGO_ENABLED=1 go build -tags "osusergo,netgo,sqlite_omit_load_extension" -ldflags "-X main.BuildTime=$(date +'%Y%m%d%H%M') -X main.WaveVersion=$WAVESRV_VERSION" -o ../bin/wavesrv ./cmd) (cd wavesrv; CGO_ENABLED=1 go build -tags "osusergo,netgo,sqlite_omit_load_extension" -ldflags "-X main.BuildTime=$(date +'%Y%m%d%H%M')" -o ../bin/wavesrv ./cmd)
node_modules/.bin/electron-forge make node_modules/.bin/electron-forge make
``` ```
@@ -60,14 +59,13 @@ rm -rf dist/
rm -rf bin/ rm -rf bin/
rm -rf build/ rm -rf build/
node_modules/.bin/webpack --env prod node_modules/.bin/webpack --env prod
WAVESRV_VERSION=$(node -e 'console.log(require("./version.js"))')
GO_LDFLAGS="-s -w -X main.BuildTime=$(date +'%Y%m%d%H%M')" GO_LDFLAGS="-s -w -X main.BuildTime=$(date +'%Y%m%d%H%M')"
(cd waveshell; CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags="$GO_LDFLAGS" -o ../bin/mshell/mshell-v0.4-darwin.amd64 main-waveshell.go) (cd waveshell; CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags="$GO_LDFLAGS" -o ../bin/mshell/mshell-v0.4-darwin.amd64 main-waveshell.go)
(cd waveshell; CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -ldflags="$GO_LDFLAGS" -o ../bin/mshell/mshell-v0.4-darwin.arm64 main-waveshell.go) (cd waveshell; CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -ldflags="$GO_LDFLAGS" -o ../bin/mshell/mshell-v0.4-darwin.arm64 main-waveshell.go)
(cd waveshell; CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="$GO_LDFLAGS" -o ../bin/mshell/mshell-v0.4-linux.amd64 main-waveshell.go) (cd waveshell; CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="$GO_LDFLAGS" -o ../bin/mshell/mshell-v0.4-linux.amd64 main-waveshell.go)
(cd waveshell; CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags="$GO_LDFLAGS" -o ../bin/mshell/mshell-v0.4-linux.arm64 main-waveshell.go) (cd waveshell; CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags="$GO_LDFLAGS" -o ../bin/mshell/mshell-v0.4-linux.arm64 main-waveshell.go)
# adds -extldflags=-static, *only* on linux (macos does not support fully static binaries) to avoid a glibc dependency # adds -extldflags=-static, *only* on linux (macos does not support fully static binaries) to avoid a glibc dependency
(cd wavesrv; CGO_ENABLED=1 go build -tags "osusergo,netgo,sqlite_omit_load_extension" -ldflags "-linkmode 'external' -extldflags=-static $GO_LDFLAGS -X main.WaveVersion=$WAVESRV_VERSION" -o ../bin/wavesrv ./cmd) (cd wavesrv; CGO_ENABLED=1 go build -tags "osusergo,netgo,sqlite_omit_load_extension" -ldflags "-linkmode 'external' -extldflags=-static $GO_LDFLAGS" -o ../bin/wavesrv ./cmd)
node_modules/.bin/electron-forge make node_modules/.bin/electron-forge make
``` ```
@@ -79,9 +77,8 @@ open out/Wave-darwin-x64/Wave.app
```bash ```bash
# @scripthaus command build-wavesrv # @scripthaus command build-wavesrv
WAVESRV_VERSION=$(node -e 'console.log(require("./version.js"))')
cd wavesrv cd wavesrv
CGO_ENABLED=1 go build -tags "osusergo,netgo,sqlite_omit_load_extension" -ldflags "-X main.BuildTime=$(date +'%Y%m%d%H%M') -X main.WaveVersion=$WAVESRV_VERSION" -o ../bin/wavesrv ./cmd CGO_ENABLED=1 go build -tags "osusergo,netgo,sqlite_omit_load_extension" -ldflags "-X main.BuildTime=$(date +'%Y%m%d%H%M')" -o ../bin/wavesrv ./cmd
``` ```
```bash ```bash

Some files were not shown because too many files have changed in this diff Show More