Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ jobs:
release-assets/*.msi
release-assets/*.dmg
release-assets/*.AppImage
release-assets/*.exe
release-assets/*.tar.gz
release-assets/*.zip
release-assets/*.sig
Expand Down
2 changes: 1 addition & 1 deletion backend/internal/domain/model/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ package model

// AppVersion stores the compiled version of the application.
// Automatically maintained by scripts/sync-version.js and injected into the go build via -ldflags.
var AppVersion = "v0.1.9-alpha"
var AppVersion = "v0.1.10-alpha"
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "frontend",
"private": true,
"version": "0.1.9-alpha",
"version": "0.1.10-alpha",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
63 changes: 36 additions & 27 deletions frontend/scripts/generate-latest-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,6 @@ export function generateLatestJson(assetsDir, tag, repo = "MathCunha16/Devaulty"
platforms: {},
};

const setPlatform = (platform, entry) => {
if (manifest.platforms[platform]) {
throw new Error(
`Conflict: platform "${platform}" was already assigned in manifest.`
);
}
manifest.platforms[platform] = entry;
};

for (const file of files) {
if (file.endsWith(".sig")) {
const targetFileName = file.slice(0, -4); // remove .sig
Expand All @@ -36,57 +27,75 @@ export function generateLatestJson(assetsDir, tag, repo = "MathCunha16/Devaulty"
// Linux Updater Artifacts (AppImage)
if (
targetFileName.endsWith(".AppImage.tar.gz") ||
(targetFileName.includes("AppImage") && !targetFileName.endsWith(".deb") && !targetFileName.endsWith(".rpm"))
targetFileName.endsWith(".AppImage")
) {
const arch =
targetFileName.includes("aarch64") || targetFileName.includes("arm64")
? "linux-aarch64"
: "linux-x86_64";
setPlatform(arch, {
signature,
url: `${baseUrl}/${targetFileName}`,
});

if (targetFileName.endsWith(".AppImage.tar.gz")) {
manifest.platforms[arch] = {
signature,
url: `${baseUrl}/${targetFileName}`,
};
} else if (!manifest.platforms[arch]) {
manifest.platforms[arch] = {
signature,
url: `${baseUrl}/${targetFileName}`,
};
}
}
// Windows Updater Artifacts (NSIS zip)
// Windows Updater Artifacts (prefer .nsis.zip for updater, fallback to -setup.exe)
else if (
targetFileName.endsWith(".nsis.zip") ||
targetFileName.endsWith("-setup.exe") ||
(targetFileName.endsWith(".exe") && !targetFileName.endsWith(".msi")) ||
(targetFileName.includes("nsis") && !targetFileName.endsWith(".msi"))
) {
const arch =
targetFileName.includes("aarch64") || targetFileName.includes("arm64")
? "windows-aarch64"
: "windows-x86_64";
setPlatform(arch, {
signature,
url: `${baseUrl}/${targetFileName}`,
});

if (targetFileName.endsWith(".nsis.zip")) {
manifest.platforms[arch] = {
signature,
url: `${baseUrl}/${targetFileName}`,
};
} else if (!manifest.platforms[arch]) {
manifest.platforms[arch] = {
signature,
url: `${baseUrl}/${targetFileName}`,
};
}
}
// macOS Updater Artifacts (strictly .app.tar.gz, excluding .dmg)
else if (targetFileName.endsWith(".app.tar.gz")) {
if (targetFileName.includes("universal")) {
setPlatform("darwin-aarch64", {
manifest.platforms["darwin-aarch64"] = {
signature,
url: `${baseUrl}/${targetFileName}`,
});
setPlatform("darwin-x86_64", {
};
manifest.platforms["darwin-x86_64"] = {
signature,
url: `${baseUrl}/${targetFileName}`,
});
};
} else if (
targetFileName.includes("x86_64") ||
targetFileName.includes("intel") ||
targetFileName.includes("x64")
) {
setPlatform("darwin-x86_64", {
manifest.platforms["darwin-x86_64"] = {
signature,
url: `${baseUrl}/${targetFileName}`,
});
};
} else {
// Default macOS build on GitHub Actions macos-latest runner (Apple Silicon ARM64)
setPlatform("darwin-aarch64", {
manifest.platforms["darwin-aarch64"] = {
signature,
url: `${baseUrl}/${targetFileName}`,
});
};
}
}
}
Expand Down
10 changes: 3 additions & 7 deletions frontend/scripts/sync-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,12 @@ function syncVersion() {
console.log(`Updated src-tauri/Cargo.toml -> ${version}`);
}

// 3. Update tauri.conf.json
// Windows MSI (WiX Toolset) & macOS bundle require a strict numeric Major.Minor.Patch version.
// We extract the numeric prefix (e.g. "0.1.6-alpha.1" -> "0.1.6") for tauri.conf.json.
const numericVersion = version.split("-")[0];

// 3. Update tauri.conf.json (full SemVer matching package.json)
if (fs.existsSync(tauriConfPath)) {
const tauriConf = JSON.parse(fs.readFileSync(tauriConfPath, "utf-8"));
tauriConf.version = numericVersion;
tauriConf.version = version;
fs.writeFileSync(tauriConfPath, JSON.stringify(tauriConf, null, 2) + "\n");
console.log(`Updated src-tauri/tauri.conf.json -> ${numericVersion} (normalized from ${version})`);
console.log(`Updated src-tauri/tauri.conf.json -> ${version}`);
}

// 4. Update backend version.go (Go backend compiled version)
Expand Down
2 changes: 1 addition & 1 deletion frontend/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "devaulty"
version = "0.1.9-alpha"
version = "0.1.10-alpha"
description = "Devaulty Desktop Client"
authors = ["Matheus Cunha"]
license = ""
Expand Down
2 changes: 1 addition & 1 deletion frontend/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
"productName": "Devaulty",
"version": "0.1.9",
"version": "0.1.10-alpha",
"identifier": "com.devaulty.app",
"build": {
"frontendDist": "../dist",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@
box-shadow: 0 0 0 1px var(--color-primary);
}

.input option {
background-color: var(--color-background);
color: var(--color-foreground);
}

.textarea {
background-color: var(--color-background);
border: 1px solid var(--color-border);
Expand Down
19 changes: 5 additions & 14 deletions frontend/src/features/releases/api/releasesApi.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { getVersion } from "@tauri-apps/api/app";
import { check, Update } from "@tauri-apps/plugin-updater";
import { relaunch } from "@tauri-apps/plugin-process";
import pkg from "../../../../package.json";
Expand All @@ -12,19 +11,11 @@ let cachedUpdate: Update | null = null;

export const releasesApi = {
getCurrentVersion: async (): Promise<CurrentVersionResponse> => {
try {
const version = await getVersion();
const current = version || pkg.version;
return {
currentVersion: current,
actualVersion: current,
};
} catch {
return {
currentVersion: pkg.version,
actualVersion: pkg.version,
};
}
const version = pkg.version;
return {
currentVersion: version,
actualVersion: version,
};
},

checkUpdates: async (): Promise<AppUpdateInfoResponse> => {
Expand Down
11 changes: 11 additions & 0 deletions frontend/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@

@layer base {
:root {
color-scheme: light;
--background: 240 6% 96%;
--foreground: 240 10% 3.9%;
--card: 240 5% 98%;
Expand All @@ -61,6 +62,7 @@
}

.dark {
color-scheme: dark;
--background: 240 10% 3.9%;
--foreground: 0 0% 98%;
--card: 240 10% 5.9%;
Expand Down Expand Up @@ -94,6 +96,15 @@
font-family: var(--font-sans);
transition: background-color 0.2s ease, border-color 0.2s ease;
}
select {
color-scheme: inherit;
background-color: var(--color-card);
color: var(--color-foreground);
}
option {
background-color: var(--color-card);
color: var(--color-foreground);
}
}

/* Custom scrollbars for industrial look */
Expand Down
5 changes: 5 additions & 0 deletions frontend/src/routes/projects.$projectId.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@
border-color: var(--color-primary);
}

.searchInput option {
background-color: var(--color-card);
color: var(--color-foreground);
}

.searchIcon {
position: absolute;
left: 0.625rem;
Expand Down
Loading