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
19 changes: 19 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Validate desktop
on:
push:
pull_request:
permissions:
contents: read
jobs:
checks:
runs-on: windows-latest
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 24
cache: npm
- run: npm ci
- run: npm run typecheck
- run: npm run lint
- run: npm test
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,6 @@ typings/

# Electron-Forge
out/

# Local release tooling and verification results
.release-work/
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,13 @@ The desktop app checks the hosted Projecto website for update metadata. The webs

Current desktop build target:

- Version: `1.0.7`
- Installer: `Projecto-1.0.7.Setup.exe`
- Version: `1.0.8`
- Installer: `Projecto-1.0.8.Setup.exe`
Comment on lines +102 to +103

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Update the documented build target to 1.0.9

This commit sets the package and generated installer version to 1.0.9, but the release instructions still identify 1.0.8 as the current target and tell maintainers to publish the 1.0.8 artifacts. Following this section would update the website or release feed with the wrong installer name and version; the version, filename, and publication note should match 1.0.9.

Useful? React with 👍 / 👎.

- Release feed: GitHub Releases
- Windows maker: Squirrel.Windows through Electron Forge

The download page and update API are maintained in `D:\projecto_frontend` and
must be updated when the `1.0.7` artifacts are published.
must be updated when the `1.0.8` artifacts are published.

## Setup

Expand Down
Binary file added assets/icon.icns
Binary file not shown.
Binary file modified assets/icon.ico
Binary file not shown.
Binary file added assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 37 additions & 0 deletions docs/releases/1.0.8.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Projecto 1.0.8

Projecto 1.0.8 refreshes the desktop identity throughout the packaged app and
Squirrel.Windows release.

## Highlights

- Adds a high-resolution Projecto app icon for Linux and other PNG consumers.
- Adds a multi-size Windows icon for the executable and Squirrel installer.
- Adds a macOS icon bundle for future signed and notarized builds.
- Uses the branded icon for native app windows and taskbar entries.
- Keeps the Projecto website favicon visually identical to the desktop app.

## Validation

- TypeScript typecheck: passed.
- ESLint: passed.
- Desktop tests: 103 passed across 19 files.
- Squirrel.Windows make: passed.
- Packaged executable file and product version: `1.0.8`.

## Windows release assets

| Artifact | Bytes | SHA-256 |
| --- | ---: | --- |
| `Projecto-1.0.8.Setup.exe` | `138862080` | `b1f26e9ef060eb05d424321c0501e1894c84f10b372b6c1a3cdbad7fa34a4bc3` |
| `projecto-1.0.8-full.nupkg` | `138043457` | `f890cb3d66ca6c3354e30f0cdac3da8358c4c9dbc0bdc7dffa9f4594a956af35` |

The generated `RELEASES` entry is:

```text
AFBCCC7614B44109BDB5A1F415CED7FB7C876412 projecto-1.0.8-full.nupkg 138043457
```

The current Windows installer is unsigned. Configure one of the supported
Windows signing environment-variable sets in `forge.config.js` and rebuild to
avoid Windows SmartScreen publisher warnings.
4 changes: 2 additions & 2 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import tseslint from 'typescript-eslint';

export default [
{
ignores: ['.webpack/**', 'out/**', 'node_modules/**'],
ignores: ['.webpack/**', '.release-work/**', 'out/**', 'node_modules/**'],
},
{
files: ['**/*.{js,mjs,cjs,ts,tsx}'],
Expand Down Expand Up @@ -39,7 +39,7 @@ export default [
},
},
{
files: ['forge.config.js', 'webpack.*.js', 'tailwind.config.js', 'postcss.config.js'],
files: ['forge.config.js', 'webpack.*.js', 'tailwind.config.js', 'postcss.config.js', 'vendor/projecto-protocol/index.js'],
rules: {
'@typescript-eslint/no-require-imports': 'off',
},
Expand Down
64 changes: 11 additions & 53 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "projecto",
"productName": "Projecto",
"version": "1.0.7",
"version": "1.0.9",
"description": "An Electron desktop app for managing, syncing, and launching developer projects through the Projecto platform.",
"main": ".webpack/main",
"private": true,
Expand Down Expand Up @@ -34,7 +34,7 @@
"framer-motion": "^12.38.0",
"gsap": "^3.15.0",
"lucide-react": "^0.468.0",
"projecto-protocol": "file:../projecto-protocol",
"projecto-protocol": "file:vendor/projecto-protocol",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.28.0",
Expand Down
6 changes: 2 additions & 4 deletions src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,7 @@ function shutdownServices(): Promise<void> {
}

shutdownPromise = (async () => {
await runShutdownStep("launcher", () => {
launcherService?.stopAllRuns();
});
await runShutdownStep("launcher", () => launcherService?.stopAllRuns());
await runShutdownStep("terminal compatibility", async () => {
await desktopBridgeService?.stop();
});
Expand Down Expand Up @@ -323,7 +321,7 @@ async function bootstrapIpc(
);
const settings = await settingsStore.getSettings();
await syncOpenAtLogin(settings.launchOnStartup);
await subscriptionService.initialize();
void subscriptionService.initialize().catch((error) => logMainProcessError("Initial subscription verification failed", error));

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Await startup verification before accepting new authentication

When an existing session is restored, this allows its verification request to remain in flight while the window and protocol handler become available. If the user completes sign-in for another account before that request finishes, the stale request can subsequently overwrite the new subscription state; an old-session 401 is worse because handleUnauthorizedSession saves the captured old record with no token, immediately signing the new user back out. Keep initialization serialized with startup as before, or discard verification results when the persisted session has changed.

Useful? React with 👍 / 👎.

await desktopBridgeService.start();

launcherService = new LauncherService(
Expand Down
11 changes: 6 additions & 5 deletions src/main/ipc/billing.ipc.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
import { ipcMain } from "electron";
import { handleTrusted } from "./trustedSender";


import { SubscriptionService } from "../services/subscriptionService";

export function registerBillingIpc(
subscriptionService: SubscriptionService,
): void {
ipcMain.handle("billing:getSubscriptionState", async () => {
handleTrusted("billing:getSubscriptionState", async () => {
return subscriptionService.getSubscriptionState();
});

ipcMain.handle("billing:openUpgradePage", async () => {
handleTrusted("billing:openUpgradePage", async () => {
await subscriptionService.openUpgradePage();
});

ipcMain.handle("billing:startGoogleSignIn", async () => {
handleTrusted("billing:startGoogleSignIn", async () => {
await subscriptionService.startGoogleSignIn();
});

ipcMain.handle("billing:refreshSubscription", async () => {
handleTrusted("billing:refreshSubscription", async () => {
return subscriptionService.refreshSubscription();
});
}
Loading
Loading