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
119 changes: 119 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
name: Release desktop builds

on:
push:
tags:
- 'v*'

permissions:
contents: read

jobs:
windows:
name: Build Windows x64 release assets
runs-on: windows-latest
timeout-minutes: 30

steps:
- name: Check out repository
uses: actions/checkout@v5

- name: Set up Node.js
uses: actions/setup-node@v5
with:
node-version: 22
cache: npm

- name: Install dependencies
run: npm ci

- name: Verify source
run: |
npm run typecheck
npm test

- name: Build Windows installer and portable executable
run: npm run package:win

- name: Upload Windows release assets
uses: actions/upload-artifact@v4
with:
name: release-windows
path: |
release/*.exe
release/*.exe.blockmap
release/latest.yml
!release/**/*__uninstaller*
if-no-files-found: error
retention-days: 1

publish:
name: Publish GitHub release
needs:
- windows
runs-on: ubuntu-22.04
timeout-minutes: 10
permissions:
contents: write

steps:
- name: Check out repository
uses: actions/checkout@v5
with:
fetch-depth: 0

- name: Set up Node.js
uses: actions/setup-node@v5
with:
node-version: 22

- name: Download release assets
uses: actions/download-artifact@v4
with:
pattern: release-*
merge-multiple: true
path: release-assets

- name: Restore the annotated release tag
shell: bash
run: git fetch --force origin "refs/tags/${GITHUB_REF_NAME}:refs/tags/${GITHUB_REF_NAME}"

- name: Verify release version and assets
shell: bash
run: |
package_version="$(node -p "require('./package.json').version")"
tag_version="${GITHUB_REF_NAME#v}"
tag_type="$(git cat-file -t "refs/tags/${GITHUB_REF_NAME}")"
[[ "$package_version" == "$tag_version" ]]
[[ "$tag_type" == "tag" ]]
shopt -s nullglob
windows_assets=(release-assets/*.exe)
((${#windows_assets[@]} == 2))
[[ -f release-assets/latest.yml ]]
grep -qx "version: ${package_version}" release-assets/latest.yml
target="$(grep -m1 '^path: ' release-assets/latest.yml | sed 's/^path: //')"
[[ -n "$target" && -f "release-assets/${target}" ]]

- name: Generate asset checksums
shell: bash
run: |
(
cd release-assets
sha256sum ./*.exe > SHA256SUMS
)

- name: Publish GitHub release
env:
GH_TOKEN: ${{ github.token }}
shell: bash
run: |
shopt -s nullglob
assets=(release-assets/*)
release_flags=()
if [[ "${GITHUB_REF_NAME}" =~ ^v?[0-9]+\.[0-9]+\.[0-9]+- ]]; then release_flags+=(--prerelease); fi
gh release create "${GITHUB_REF_NAME}" \
"${assets[@]}" \
--verify-tag \
--title "ZeroG FileMan ${GITHUB_REF_NAME}" \
"${release_flags[@]}" \
--generate-notes
9 changes: 8 additions & 1 deletion PROGRESS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Current

Drive picker, per-pane refresh, and multi-select (Ctrl/Shift/Ctrl+A) with batch copy/cut/paste/F5/F6/delete.
In-app name dialog (New Folder / New File / Rename / favorite naming) and Explorer-style drag-drop inside and between panes, on top of the drive picker, per-pane refresh, and multi-select (Ctrl/Shift/Ctrl+A) with batch copy/cut/paste/F5/F6/delete.

Public on GitHub since 2026-11-10 (HappyMonkeyAI/ZeroGFileMan, MIT). The history was rewritten before publishing: personal email only, no LAN IPs or home paths. The pre-public history and code-review PRs #1–#3 are in the archived private repo `HappyMonkeyAI/ZeroGFileMan-archive`. PR numbers in this repo restart at #1.

Expand All @@ -24,6 +24,13 @@ Open check: builtin Whisper model download under the narrowed CSP `connect-src`
- SonarCloud removed for this repo: both FileMan projects deleted in the happymonkeyai SonarCloud org; the org-wide GitHub app is unchanged
- Per-pane Windows drive dropdown (`fs:drives` / path chrome)
- Per-pane refresh pill; multi-select with batch clipboard and F5/F6/delete
- Consent-based app updates from GitHub releases: startup/manual checks, in-place updates for NSIS installs, release-page notifications for portable builds, and a tag-driven Windows release workflow
- Update service covered by 27 tests; `npm run typecheck`, `npm test` (164 tests), and `npm run build` pass
- Final Windows NSIS and portable artifacts rebuilt successfully as separate targets after the combined package command timed out
- Favorites polish: the global picker now has explicit rename/remove controls, and the path action toggles between Add and Remove while preserving the existing `favorites.json` model
- In-app name dialog replaces `window.prompt` (Electron never implements it): New Folder, New File type/name, Rename (F2) and favorite naming now work in both panes; inline validation, Esc/Cancel aborts, new folders land selected
- Explorer-style drag-drop inside and between panes: drag = move, Ctrl = copy, Shift = force move, cross-drive defaults to copy; targets are folder rows/tiles, pane background, ".." and breadcrumbs; whole-selection drag; both panes refresh and the transcript logs each op; same-folder moves and drops into a folder's own subtree are no-ops
- Name dialog + drag-drop rules covered by 24 new tests (188 total); `npm run ci` passes; verified in a real hidden Electron window against a temp filesystem: 14/14 UI checks (dialog in the right pane, invalid-name error, Esc cancel, F2 rename, cross-pane move, Ctrl copy, folder-row drop, same-folder no-op)

## Next

Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,24 @@ Packaged builds are Windows x64 only for now.

Signing is off (`signAndEditExecutable: false`). App id: `com.happymonkeyai.zerogfileman`. Window/installer icon lives in `build/` (`npm run icon:render` regenerates png/ico from the SVG).

## Updates

The app checks GitHub releases about eight seconds after launch, unless you switch **Settings → Updates** to **Manual** or run an unpackaged development build.

- **NSIS install:** the prompt can download the signed `latest.yml`-checked installer, then install it when you explicitly choose **Install and restart**.
- **Portable executable:** the app cannot safely replace itself, so the prompt only opens the release page.
- **Development or npm-installed builds:** update checks are disabled.

Nothing downloads or installs without explicit consent. **Later** hides the prompt until the next check; **Skip this version** hides it until a newer release appears or you clear the skipped version in Settings. Pushing a `v*` tag runs `.github/workflows/release.yml`, which publishes the two Windows executables, the installer blockmap, and `latest.yml`.

## What it does

- Dual local panes with breadcrumbs, history (Alt+←/→), favorites, Ctrl+K jump
- Favorites bar with direct open, rename, remove, and an add/remove toggle for the active path
- CRUD + cross-pane clipboard; F5/F6 copy/move to the other pane
- Per-pane **Navigate** / **Action** jewels: click-toggle or hold-to-talk; Esc cancels
- Speech engines: demo transcript, builtin Whisper (Transformers.js), or OpenAI-compatible server (API key in OS safeStorage)
- Consent-based Windows update checks through the GitHub releases API

## Docs

Expand Down
7 changes: 5 additions & 2 deletions ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Repo: [HappyMonkeyAI/ZeroGFileMan](https://github.com/HappyMonkeyAI/ZeroGFileMan
| D14 | Listing view modes | Details / Icons / Thumbnails + Ctrl+wheel scale; thumb caps |
| D15 | Split layouts | Side-by-side / stacked + maximize; draggable gutter |
| D16 | Terminal launcher pref | System / ZeroG Term / custom command from Settings |
| D17 | App updates | Consent-based GitHub release checks; NSIS installs, portable notifies |

## Near-term (ordered)

Expand All @@ -45,8 +46,10 @@ Repo: [HappyMonkeyAI/ZeroGFileMan](https://github.com/HappyMonkeyAI/ZeroGFileMan
| P1.2 | Tab switches active pane | Tab focus LEFT ↔ RIGHT | done |
| P1.3 | F-keys like classic commanders | F2 rename, F5 copy→, F6 move→, F7 mkdir, Del | done (ADR-0004) |
| P1.4 | Copy/Move **to other pane** | Copy → / Move → toolbar + F5/F6 | done |
| P1.5 | Editable favorites | Persist bookmarks in userData | done |
| P1.5 | Editable favorites | Persist bookmarks in userData; rename/remove chips and active-path toggle | done |
| P1.6 | Global jump (⌘K / Ctrl+K) | Focus brand-bar search; Enter → Navigate | done |
| P1.7 | In-app name dialog | Electron has no `window.prompt`; New Folder / New File / Rename / favorite naming use a validated dialog | done |
| P1.8 | Drag-drop between panes | Drag = move, Ctrl = copy, Shift = force move; folder rows, pane background, "..", breadcrumbs as targets; multi-select drag | done |

### P2 — Voice that works offline

Expand Down Expand Up @@ -75,10 +78,10 @@ Repo: [HappyMonkeyAI/ZeroGFileMan](https://github.com/HappyMonkeyAI/ZeroGFileMan
| P4.2 | App icon | Distinct FileMan dual-pane icon (`build/icon.*`); electron-builder + window chrome | done |
| P4.3 | README quickstart | Screenshots optional; clear `npm start` path | done |
| P4.4 | CI | GitHub Action: typecheck + test + build on push | done |
| P4.5 | App updates | electron-updater, release-page fallback, Settings controls, tag release workflow | done |

## Later / park

- Drag-drop between panes (multi-select shipped)
- Recursive delete with explicit danger modal (default stays non-recursive)
- Permissions / owner columns (platform-accurate, not fake Unix on NTFS)
- Thumbnail generation caps (size/type allowlist; no decode of huge RAW by default)
Expand Down
66 changes: 53 additions & 13 deletions package-lock.json

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

Loading
Loading