Release 2.7.2.4: macOS app icon, glaze UI and auto build numbers.
Add green N AppIcon to the .app bundle, keep WKWebView GUI stable, and stamp builds via BaseVersion/BuildNumber. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -114,7 +114,7 @@
|
||||
font-size: .68rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: .04em;
|
||||
text-transform: uppercase;
|
||||
text-transform: none;
|
||||
color: var(--accent-deep);
|
||||
background: var(--accent-soft);
|
||||
border: 1px solid rgba(13,138,102,.18);
|
||||
@@ -718,14 +718,17 @@
|
||||
<header class="top">
|
||||
<div class="logo" aria-hidden="true">
|
||||
<svg viewBox="0 0 32 32" fill="none">
|
||||
<path d="M8 26V6h4.2L20 18.4V6H24v20h-4.2L12 13.6V26H8z" fill="#f4fff9"/>
|
||||
<path d="M22.5 8.2l3.2-1.1-1.1 3.2-5.6 5.6 1.6 1.6 5.6-5.6 3.2-1.1-1.1 3.2" fill="#b8f0d8" opacity=".9"/>
|
||||
<!-- Bold N -->
|
||||
<path fill="#f4fff9" d="M8 25.2V7.6h4.4l7.4 11.2V7.6H24v17.6h-4.4L12.2 14V25.2H8z"/>
|
||||
<!-- Plug prongs on left stem -->
|
||||
<rect x="9.05" y="4.2" width="1.55" height="3.6" rx=".45" fill="#f4fff9"/>
|
||||
<rect x="11.55" y="4.2" width="1.55" height="3.6" rx=".45" fill="#f4fff9"/>
|
||||
</svg>
|
||||
</div>
|
||||
<div class="brand-wrap">
|
||||
<div class="brand-row">
|
||||
<h1 class="brand">Navis</h1>
|
||||
<span class="badge-ver">2.7</span>
|
||||
<span class="badge-ver" id="badgeVer">2.7.2</span>
|
||||
</div>
|
||||
<p class="tagline">Быстрый клиент · Naive · Hy2 · AWG · Xray</p>
|
||||
</div>
|
||||
@@ -1169,6 +1172,8 @@
|
||||
|
||||
function renderUpdate(u, version) {
|
||||
verLabel.textContent = "Navis v" + (version || "?");
|
||||
const badge = $("badgeVer");
|
||||
if (badge && version) badge.textContent = version;
|
||||
if (!u) {
|
||||
updateBanner.classList.remove("show");
|
||||
return;
|
||||
|
||||
@@ -16,9 +16,6 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
// CurrentVersion is the shipped client version.
|
||||
const CurrentVersion = "2.7.1"
|
||||
|
||||
// DefaultManifestURL is the update feed (hosted in the project git repo).
|
||||
const DefaultManifestURL = "https://git.evilfox.cc/test2/navi/raw/branch/main/dist/update.json"
|
||||
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
package update
|
||||
|
||||
import "strings"
|
||||
|
||||
// BaseVersion is the marketing / release version (MAJOR.MINOR.PATCH).
|
||||
const BaseVersion = "2.7.2"
|
||||
|
||||
// BuildNumber is the incremental build counter.
|
||||
// Override at link time:
|
||||
//
|
||||
// -ldflags "-X vpnclient/internal/update.BuildNumber=42"
|
||||
//
|
||||
// Source default is bumped by build scripts via buildnum.txt.
|
||||
var BuildNumber = "4"
|
||||
|
||||
// CurrentVersion is BaseVersion.BuildNumber, e.g. "2.7.2.1".
|
||||
// Set in init so -ldflags BuildNumber is applied first.
|
||||
var CurrentVersion string
|
||||
|
||||
func init() {
|
||||
CurrentVersion = FullVersion()
|
||||
}
|
||||
|
||||
// FullVersion returns "MAJOR.MINOR.PATCH.BUILD".
|
||||
func FullVersion() string {
|
||||
b := strings.TrimSpace(BuildNumber)
|
||||
if b == "" {
|
||||
b = "0"
|
||||
}
|
||||
return BaseVersion + "." + b
|
||||
}
|
||||
Reference in New Issue
Block a user