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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ __pycache__/
.env
.env.local
.env.*.local
# Update signing keys (kept outside the repo, see docs/UPDATES.md; never commit one)
*.key
*.key.pub

# Logs
logs/
Expand Down
12 changes: 9 additions & 3 deletions docs/ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,14 @@ Local_WebFileBrowser_Tauri/
├── docs/
│ ├── ARCHITECTURE.md # This document
│ ├── ROADMAP.md # Feature ideas and prioritized roadmap
│ ├── UPDATES.md # In-app updates: signing key, release steps, private-repo setups
│ ├── site/ # Built user guide (plain HTML), embedded in the app and opened by the Help button
│ └── site-src/ # Guide sources (Markdown) and build.mjs: `node docs/site-src/build.mjs`
├── release/ # Output folder for compiled .exe and installers
├── scripts/
│ ├── blender_convert.py # Headless Blender 3D conversion & render script
│ ├── release.js # Release orchestrator (bumps versions, builds, tags, uploads to GitHub Releases)
│ ├── release.js # Release orchestrator (bumps versions, builds, signs, tags, uploads to GitHub Releases)
│ ├── updater.js # In-app updates: makes the signing key once, signs a release and writes latest.json
│ └── version-check.js # Fails if package.json, tauri.conf.json, Cargo.toml and ARCHITECTURE.md disagree
├── src/
│ ├── components/
Expand All @@ -262,7 +264,9 @@ Local_WebFileBrowser_Tauri/
│ │ ├── ImageViewer.jsx # 2D pan/zoom image & texture viewer
│ │ ├── PdfViewer.jsx # Continuous-scroll PDF viewer (pdf.js)
│ │ ├── MarkdownViewer.jsx # Markdown reading page: images/GIFs, tables, code, outline, links
│ │ ├── SettingsModal.jsx # Appearance (colour scheme), Blender path settings & cache management
│ │ ├── SettingsModal.jsx # Appearance (colour scheme), updates, Blender path settings & cache management
│ │ ├── UpdateSection.jsx # Settings > Updates: check, what's new, download and install
│ │ ├── UpdateNotice.jsx # Corner notice: updated, update failed, or a new version is out
│ │ ├── TxTexViewer.jsx # Arnold .tx / RenderMan .tex viewer: mip levels, "will it be sharp enough?" check
│ │ ├── ConnectNetworkModal.jsx # "Connect to network folder" window (path, username, password, stay connected)
│ │ ├── PathInput.jsx # Address-bar text box for typed folder / network paths
Expand All @@ -275,6 +279,7 @@ Local_WebFileBrowser_Tauri/
│ ├── hooks/
│ │ └── useQuickLook.js # Space / Esc for the Quick Look floating window
│ ├── utils/
│ │ ├── updateStore.js # In-app update state, daily check, skip version (shared by Settings and the sidebar dot)
│ │ ├── assetLoader.js # Three.js loaders (OBJ, FBX, GLTF, STL, PLY, USDZ, HDR)
│ │ ├── exrLoaderExtended.js # Multilayer OpenEXR loader
│ │ ├── halfFloat.js # Half-float lookup table and rawSample() for decoded EXR pixels
Expand Down Expand Up @@ -307,6 +312,7 @@ Local_WebFileBrowser_Tauri/
│ │ ├── folder_icons.rs # Folder icon store (portable-aware) and Windows desktop.ini icon export
│ │ ├── exr_view.rs # Native multi-core EXR decode for the viewer
│ │ ├── lib.rs # Rust IPC commands, drive scan, config storage
│ │ ├── app_update.rs # In-app updates: signed check/download, installer run, portable exe swap with rollback
│ │ ├── main.rs # Windows entrypoint (#![windows_subsystem = "windows"])
│ │ ├── network_login.rs # Share sign-in (WNetAddConnection2) and Credential Manager password storage
│ │ ├── recent_folders.rs # Recent folders for the sidebar: read back (existing ones only) and clear
Expand Down Expand Up @@ -388,7 +394,7 @@ git remote set-url origin https://github.com/rajhansgithub/CG_Artist_File_Browse

All agents (**Antigravity**, **Claude Code**) and human contributors must strictly adhere to **Semantic Versioning (`MAJOR.MINOR.PATCH`)** when determining the next release version.

**Current release version:** `1.24.0`
**Current release version:** `1.25.0`

`npm run version:check` (also run in CI) fails unless `package.json`, `src-tauri/tauri.conf.json`, `src-tauri/Cargo.toml` and the line above all carry the same plain `MAJOR.MINOR.PATCH` version.

Expand Down
88 changes: 88 additions & 0 deletions docs/UPDATES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
# In-app updates

Settings > **Updates** checks for a newer version, shows what is new, then downloads and installs it.
The app also checks quietly once a day (can be turned off there) and puts a small blue dot on the Settings
button plus a notice in the corner when a new version is out. Nothing installs without a click.

Code: `src-tauri/src/app_update.rs` (Rust, uses `tauri-plugin-updater`), `src/utils/updateStore.js`,
`src/components/UpdateSection.jsx`, `src/components/UpdateNotice.jsx`. Release tools: `scripts/updater.js`.

## How it stays safe

| Risk | What stops it |
| :--- | :--- |
| A changed or fake download | Every file is signed with the release key. The app only installs a file whose signature matches the public key built into it (`tauri.conf.json > plugins.updater.pubkey`). |
| An old release passed off as new (downgrade) | The signature also names the version it was made for (`--app-version`, `requireSignedVersion: true`). A manifest that says 1.30.0 but points at the 1.24.0 file is refused. |
| Going backwards or onto a beta | Only a version newer than the running one, without a `-beta` style suffix, is offered. |
| Offline, proxy, slow line | The check gives up after 20 s, a stalled download after 60 s without data. The daily check fails silently and tries again later. The system proxy is used. |
| Download cut off | The signature check fails, nothing is changed. |
| Portable exe in a read-only folder | Found before the download; the message says to move it or use the download page. |
| New portable exe does not start | The old exe is kept as `<name>.old` and put back if the new one closes before its window opens. It is deleted once the new one runs. |
| Installer fails | The app reports "The update to vX did not finish" next time it opens, still on the old version. |

No account, token or secret is in the app. The only request is a plain HTTPS GET of `latest.json` and of the
file it names.

## The signing key (once per app)

```
npm run updater:keygen
```

Makes the key at `%USERPROFILE%\.tauri\cg-artist-file-browser-updater.key` (outside the repo) and writes its
public half into `src-tauri/tauri.conf.json`. **Back up the key file.** If it is lost, installed apps cannot be
updated any more and everyone has to download the app again by hand. Never commit it (`*.key` is gitignored).
Running keygen again reuses the existing key. Another location: set `TAURI_SIGNING_PRIVATE_KEY_PATH`.

## Every release

1. Build as usual (`npm run tauri:build`), copy the installer and the portable exe to `release/` with their
usual names (`CG-Artist-File-Browser-Setup-v<ver>.exe`, `CG-Artist-File-Browser-v<ver>-Portable.exe`).
2. `npm run updater:sign -- <ver> --notes "What changed, in plain words"`
signs both and writes `release/latest.json`.
3. Upload both exes **and `latest.json`** to the GitHub release `v<ver>`. Best: create the release as a draft,
upload everything, then publish, so the app never sees a release without its `latest.json`.

`npm run release <ver> -- --notes "..."` does all three (draft, upload, publish).

The app reads `https://github.com/<owner>/<repo>/releases/latest/download/latest.json`. GitHub only serves
that without a login when the repo is **public**.

## Private apps (source stays private)

Never put a GitHub token in an app: anyone can pull it out of the exe. Instead publish only the release files
somewhere public:

1. **Public release mirror repo (recommended).** Make an empty public repo, for example
`<owner>/<app>-releases`, that holds no source, only releases. Point the endpoint at it:
`"endpoints": ["https://github.com/<owner>/<app>-releases/releases/latest/download/latest.json"]`.
`npm run updater:sign` then writes download links to the mirror, and `npm run release` publishes the files
there too. People can also download from that repo's Releases page.
2. **Any HTTPS static host** (your website, Cloudflare R2/Pages, S3). Upload `latest.json` and the two exes,
set the endpoint to the `latest.json` URL and sign with `--base-url https://host/path/v<ver>`.
3. **Both.** `endpoints` is a list; the app tries them in order and uses the first that answers.

## latest.json

```json
{
"version": "1.26.0",
"notes": "What changed",
"pub_date": "2026-12-01T10:00:00Z",
"platforms": {
"windows-x86_64": { "url": ".../CG-Artist-File-Browser-Setup-v1.26.0.exe", "signature": "<.sig content>" },
"windows-x86_64-nsis": { "url": ".../CG-Artist-File-Browser-Setup-v1.26.0.exe", "signature": "<.sig content>" },
"windows-x86_64-portable": { "url": ".../CG-Artist-File-Browser-v1.26.0-Portable.exe", "signature": "<.sig content>" }
}
}
```

The installed app uses `windows-x86_64`, the portable exe `windows-x86_64-portable` (told apart by the
`uninstall.exe` the installer puts next to the app).

## Rules for later versions

- Keep the same key forever. A new key locks out every installed copy.
- A new portable exe must keep writing its ready file when started with `--update-ready=<path>` (done by
`update_startup`), or the old exe waits 45 s before it closes.
- The first version with the updater is 1.25.0. Copies older than that must be updated by hand once.
13 changes: 11 additions & 2 deletions docs/site-src/content/deep/settings-themes.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
title: Settings and themes
layer: deep
nav: Settings and themes
summary: The settings window: the four colour themes, the user guide link, the Blender path, the send-to apps and the asset cache.
summary: The settings window: updates, the four colour themes, the user guide link, the Blender path, the send-to apps and the asset cache.
order: 16
counterpart: quick/how-do-i
---

## Opening Settings

Click the gear at the top right, or **Studio Preferences & Configuration**. The window has five parts.
Click the gear at the top right, or **Studio Preferences & Configuration**. The window has six parts.

![The settings window with the appearance and Blender options](media:settings-themes.webp "Appearance at the top, then Blender, External apps and the asset cache")

Expand All @@ -24,6 +24,15 @@ Four themes are available. The choice is remembered and applies at once.
| True Black | Pure black, best on OLED screens |
| Light | A bright studio look |

## Updates

**Check for updates** asks for the newest version. When there is one, you see its number, the date and what is new, with **Download and install** and **Skip this version**.

- The installed app closes, installs the update with a small progress bar and opens again. Settings and files stay as they are.
- The portable exe replaces itself in the same folder. The old exe is kept until the new one opens, and put back if it does not. A portable exe in a folder you cannot write to (such as Program Files) cannot update itself: move it, or use **Open the download page**.
- Every download is checked against the app's signature before anything changes. A file that fails the check is not installed.
- **Check once a day** looks quietly in the background. When a new version is out, a blue dot appears on the Settings button and a small notice in the corner. Without internet nothing is shown; it tries again later. Only the version information is fetched; nothing about you or your files is sent.

## Documentation

**Open the user guide** opens this guide in your default browser. It is the same as the question-mark **Help** button in the top bar. The guide is built into the app and works without the internet; the first time you open it, the app saves a copy in its data folder and opens that copy.
Expand Down
10 changes: 8 additions & 2 deletions docs/site-src/content/shared/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
title: Release notes
layer: shared
nav: Release notes
summary: What has been added and fixed, grouped by area, in plain words. The current version is 1.24.0.
summary: What has been added and fixed, grouped by area, in plain words. The current version is 1.25.0.
order: 2
---

The current version is **1.24.0**. This list groups the changes by what you see in the app. Version numbers for each release are in the project's history on GitHub.
The current version is **1.25.0**. This list groups the changes by what you see in the app. Version numbers for each release are in the project's history on GitHub.

## Folders, network and navigation

Expand Down Expand Up @@ -49,6 +49,12 @@ The current version is **1.24.0**. This list groups the changes by what you see
- The 3D view no longer turns black after the window or a side panel changes size.
- Thumbnail cache with a clear button in Settings.

## Updates

- Check for updates from inside the app: Settings > Updates shows what is new and installs it with one click. The installed app updates itself and opens again; the portable exe replaces itself where it is.
- Every update is checked against our signature first, so a broken, changed or older file is never installed. If the new portable version does not start, the old one is put back.
- A quiet check once a day (can be turned off) puts a small blue dot on the Settings button when a new version is out. Nothing installs without a click.

## Achievements

- Achievements: badges for real work, like opening models and HDRs, organising files and finishing batch jobs. Each badge climbs from Bronze to Ruby as lens iris medals, with Diamond and Ruby as real cut stones. Sets of four make certified showreels.
Expand Down
2 changes: 1 addition & 1 deletion docs/site/assets/search-index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/site/deep/3d-models.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</header>
<div class="shell">
<nav id="sidebar" class="sidebar" aria-label="Guide pages"><div class="nav-group"><ul><li><a href="../index.html">Start here</a></li></ul></div><div class="nav-group"><p class="nav-title">Quick start<span>Surface level</span></p><ul><li><a href="../quick/tour.html">A quick tour</a></li><li><a href="../quick/how-do-i.html">How do I…?</a></li><li><a href="../quick/shortcuts.html">Keyboard shortcuts</a></li></ul></div><div class="nav-group"><p class="nav-title">Deep dive<span>Details, one page per feature</span></p><ul><li><a href="../deep/folders-and-network.html">Folders and network drives</a></li><li><a href="../deep/images.html">Images and textures</a></li><li><a href="../deep/hdr-exr.html">HDR and EXR maps</a></li><li><a href="../deep/3d-models.html" aria-current="page">3D models</a></li><li><a href="../deep/usd-outliner.html">USD, Alembic and Blender</a></li><li><a href="../deep/video-and-audio.html">Video and audio</a></li><li><a href="../deep/quick-look.html">Quick Look</a></li><li><a href="../deep/render-textures.html">Render textures (.tx, .tex)</a></li><li><a href="../deep/pdf.html">PDF documents</a></li><li><a href="../deep/markdown.html">Markdown documents</a></li><li><a href="../deep/image-sequences.html">Image sequences</a></li><li><a href="../deep/compare.html">Compare</a></li><li><a href="../deep/labels-tags.html">Labels and tags</a></li><li><a href="../deep/inspector.html">Inspector</a></li><li><a href="../deep/send-to-apps.html">Send to apps</a></li><li><a href="../deep/batch-converter.html">Batch converter</a></li><li><a href="../deep/duplicate-finder.html">Duplicate finder</a></li><li><a href="../deep/settings-themes.html">Settings and themes</a></li><li><a href="../deep/troubleshooting.html">Troubleshooting</a></li><li><a href="../deep/architecture.html">Architecture (contributors)</a></li></ul></div><div class="nav-group"><p class="nav-title">Both layers<span>Useful for both</span></p><ul><li><a href="../shared/faq.html">FAQ</a></li><li><a href="../shared/release-notes.html">Release notes</a></li></ul></div>
<p class="sidebar-foot">Version 1.24.0. Pictures are previews, see <a href="../shared/faq.html">FAQ</a>.</p>
<p class="sidebar-foot">Version 1.25.0. Pictures are previews, see <a href="../shared/faq.html">FAQ</a>.</p>
</nav>
<main id="content" class="content" tabindex="-1">
<article class="page">
Expand Down
2 changes: 1 addition & 1 deletion docs/site/deep/architecture.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</header>
<div class="shell">
<nav id="sidebar" class="sidebar" aria-label="Guide pages"><div class="nav-group"><ul><li><a href="../index.html">Start here</a></li></ul></div><div class="nav-group"><p class="nav-title">Quick start<span>Surface level</span></p><ul><li><a href="../quick/tour.html">A quick tour</a></li><li><a href="../quick/how-do-i.html">How do I…?</a></li><li><a href="../quick/shortcuts.html">Keyboard shortcuts</a></li></ul></div><div class="nav-group"><p class="nav-title">Deep dive<span>Details, one page per feature</span></p><ul><li><a href="../deep/folders-and-network.html">Folders and network drives</a></li><li><a href="../deep/images.html">Images and textures</a></li><li><a href="../deep/hdr-exr.html">HDR and EXR maps</a></li><li><a href="../deep/3d-models.html">3D models</a></li><li><a href="../deep/usd-outliner.html">USD, Alembic and Blender</a></li><li><a href="../deep/video-and-audio.html">Video and audio</a></li><li><a href="../deep/quick-look.html">Quick Look</a></li><li><a href="../deep/render-textures.html">Render textures (.tx, .tex)</a></li><li><a href="../deep/pdf.html">PDF documents</a></li><li><a href="../deep/markdown.html">Markdown documents</a></li><li><a href="../deep/image-sequences.html">Image sequences</a></li><li><a href="../deep/compare.html">Compare</a></li><li><a href="../deep/labels-tags.html">Labels and tags</a></li><li><a href="../deep/inspector.html">Inspector</a></li><li><a href="../deep/send-to-apps.html">Send to apps</a></li><li><a href="../deep/batch-converter.html">Batch converter</a></li><li><a href="../deep/duplicate-finder.html">Duplicate finder</a></li><li><a href="../deep/settings-themes.html">Settings and themes</a></li><li><a href="../deep/troubleshooting.html">Troubleshooting</a></li><li><a href="../deep/architecture.html" aria-current="page">Architecture (contributors)</a></li></ul></div><div class="nav-group"><p class="nav-title">Both layers<span>Useful for both</span></p><ul><li><a href="../shared/faq.html">FAQ</a></li><li><a href="../shared/release-notes.html">Release notes</a></li></ul></div>
<p class="sidebar-foot">Version 1.24.0. Pictures are previews, see <a href="../shared/faq.html">FAQ</a>.</p>
<p class="sidebar-foot">Version 1.25.0. Pictures are previews, see <a href="../shared/faq.html">FAQ</a>.</p>
</nav>
<main id="content" class="content" tabindex="-1">
<article class="page">
Expand Down
Loading
Loading