SPB Git

Repository Public

build-core.sh 583 B 10 lines shellscript

1#!/bin/zsh2# Bundles the client engine (TypeScript, shared with the web application) into Resources/core.js.3set -euo pipefail4HERE="${0:A:h}"5SRC="${SPM_WEB_REPO:-$HOME/Desktop/Cluster/projets/sp-message}"6cd "$SRC"7node -e 'import("esbuild").then((e)=>e.build({entryPoints:["native/core.ts"],outfile:"dist/native-core.js",bundle:true,format:"iife",target:"safari17",minify:true,logLevel:"warning"}))'8cp dist/native-core.js "$HERE/../Resources/core.js"9echo "core.js $(shasum -a 256 "$HERE/../Resources/core.js" | cut -c1-16) ($(git -C "$SRC" rev-parse --short HEAD 2>/dev/null))"10
Files main
Menu

Theme