Rebrand: Nexus Terminal → Alchementary Link
Renames the product across the codebase: Go module path, config/data paths, keychain service name, export file extension, build tooling, docs, and UI text. Sidebar brand mark now reads ">_ AlchementaryLink" with "Alchementary" in the connection-group gold accent colour, and the window title is "Alchementary Link". Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019T8bJS8BCtY5GeSG2HBj1n
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
114060127f
commit
1a380a0e99
+15
-15
@@ -1,41 +1,41 @@
|
||||
#!/usr/bin/env bash
|
||||
# Shared build helpers for local builds, release packaging, and CI snippets.
|
||||
|
||||
nexus_wails_version() {
|
||||
link_wails_version() {
|
||||
local go_mod="${1:-go.mod}"
|
||||
awk '$1 == "github.com/wailsapp/wails/v2" { print $2; exit }' "$go_mod"
|
||||
}
|
||||
|
||||
nexus_bool_enabled() {
|
||||
link_bool_enabled() {
|
||||
case "${1:-}" in
|
||||
1|true|TRUE|yes|YES|on|ON) return 0 ;;
|
||||
*) return 1 ;;
|
||||
esac
|
||||
}
|
||||
|
||||
nexus_use_upx_for_target() {
|
||||
link_use_upx_for_target() {
|
||||
local target_os="$1"
|
||||
nexus_bool_enabled "${NEXUS_COMPRESS:-0}" || return 1
|
||||
if [ "$target_os" = "darwin" ] && ! nexus_bool_enabled "${NEXUS_FORCE_MACOS_UPX:-0}"; then
|
||||
link_bool_enabled "${LINK_COMPRESS:-0}" || return 1
|
||||
if [ "$target_os" = "darwin" ] && ! link_bool_enabled "${LINK_FORCE_MACOS_UPX:-0}"; then
|
||||
return 1
|
||||
fi
|
||||
return 0
|
||||
}
|
||||
|
||||
nexus_skips_upx_for_target() {
|
||||
link_skips_upx_for_target() {
|
||||
local target_os="$1"
|
||||
nexus_bool_enabled "${NEXUS_COMPRESS:-0}" || return 1
|
||||
link_bool_enabled "${LINK_COMPRESS:-0}" || return 1
|
||||
[ "$target_os" = "darwin" ] || return 1
|
||||
! nexus_bool_enabled "${NEXUS_FORCE_MACOS_UPX:-0}"
|
||||
! link_bool_enabled "${LINK_FORCE_MACOS_UPX:-0}"
|
||||
}
|
||||
|
||||
nexus_configure_pure_go_build() {
|
||||
link_configure_pure_go_build() {
|
||||
export CGO_ENABLED=0
|
||||
unset CGO_CFLAGS
|
||||
unset CGO_CXXFLAGS
|
||||
}
|
||||
|
||||
nexus_build_tags() {
|
||||
link_build_tags() {
|
||||
if command -v pkg-config >/dev/null 2>&1 \
|
||||
&& pkg-config --exists webkit2gtk-4.1 \
|
||||
&& ! pkg-config --exists webkit2gtk-4.0; then
|
||||
@@ -43,7 +43,7 @@ nexus_build_tags() {
|
||||
fi
|
||||
}
|
||||
|
||||
nexus_build_version() {
|
||||
link_build_version() {
|
||||
local tag
|
||||
local commit
|
||||
tag="$(git describe --tags --abbrev=0 2>/dev/null || echo "dev")"
|
||||
@@ -51,11 +51,11 @@ nexus_build_version() {
|
||||
echo "${tag}-${commit}"
|
||||
}
|
||||
|
||||
nexus_build_ldflags() {
|
||||
link_build_ldflags() {
|
||||
local version="$1"
|
||||
local flags="-s -w -buildid= -X github.com/andydixon/nexus/internal/api.appVersion=${version}"
|
||||
if [ -n "${NEXUS_UPDATE_URL:-}" ]; then
|
||||
flags="${flags} -X github.com/andydixon/nexus/internal/api.appUpdateURL=${NEXUS_UPDATE_URL}"
|
||||
local flags="-s -w -buildid= -X github.com/andydixon/link/internal/api.appVersion=${version}"
|
||||
if [ -n "${LINK_UPDATE_URL:-}" ]; then
|
||||
flags="${flags} -X github.com/andydixon/link/internal/api.appUpdateURL=${LINK_UPDATE_URL}"
|
||||
fi
|
||||
echo "${flags}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user