From 3b4d99c3ce88f35f87282b17ae8f1acf86c48c6a Mon Sep 17 00:00:00 2001 From: SkippyNet <72524237+SkippyNet@users.noreply.github.com> Date: Thu, 12 Nov 2026 23:53:56 -0500 Subject: [PATCH] SpaceScope 1.2.0: 32-bit Windows build, maximised window, signing groundwork - CI builds windows-x86 as well as windows-x64 and linux-x64. - The window opens maximised; F11 toggles full screen. - Release workflow signs Windows binaries through SignPath once the repository has its SignPath credentials; unsigned until then. - Website and README: code signing policy, privacy policy, 32-bit download. Co-Authored-By: Claude --- .cargo/config.toml | 3 ++ .github/workflows/ci.yml | 65 ++++++++++++++++++++++++++++++------- CHANGELOG.md | 9 +++++ Cargo.lock | 4 +-- Cargo.toml | 2 +- README.md | 21 +++++++++++- crates/app/src/app.rs | 11 +++++++ crates/app/src/main.rs | 6 ++-- docs/index.html | 30 ++++++++++++++--- docs/privacy.html | 50 ++++++++++++++++++++++++++++ docs/sitemap.xml | 1 + scripts/package-deb.sh | 11 +++++-- scripts/package-windows.ps1 | 27 ++++++++++++--- 13 files changed, 211 insertions(+), 29 deletions(-) create mode 100644 docs/privacy.html diff --git a/.cargo/config.toml b/.cargo/config.toml index b445ba4..cd69b77 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -3,5 +3,8 @@ [target.x86_64-pc-windows-msvc] rustflags = ["-C", "target-feature=+crt-static"] +[target.i686-pc-windows-msvc] +rustflags = ["-C", "target-feature=+crt-static"] + [target.aarch64-pc-windows-msvc] rustflags = ["-C", "target-feature=+crt-static"] diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ac55efd..da0887d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,23 +11,32 @@ env: jobs: build: + name: build (${{ matrix.name }}) strategy: fail-fast: false matrix: include: - os: windows-latest name: windows-x64 + target: x86_64-pc-windows-msvc + - os: windows-latest + name: windows-x86 + target: i686-pc-windows-msvc # Built on the oldest supported release so the binary also runs on # Ubuntu 22.04+ and Debian 12+. - os: ubuntu-22.04 name: linux-x64 + target: x86_64-unknown-linux-gnu runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable with: components: clippy, rustfmt + targets: ${{ matrix.target }} - uses: Swatinem/rust-cache@v2 + with: + key: ${{ matrix.target }} # A release tag must name the version the binaries report. - name: Tag matches version @@ -43,26 +52,59 @@ jobs: - name: Format run: cargo fmt --all -- --check - name: Lint - run: cargo clippy --release --all-targets -- -D warnings + run: cargo clippy --release --all-targets --target ${{ matrix.target }} -- -D warnings - name: Test - run: cargo test --release - - - name: Package (Windows) - if: runner.os == 'Windows' - shell: pwsh - run: ./scripts/package-windows.ps1 - - name: Package (Debian) - if: runner.os == 'Linux' - run: ./scripts/package-deb.sh + run: cargo test --release --target ${{ matrix.target }} + - name: Build + run: cargo build --release --target ${{ matrix.target }} - name: Binary reports the right version shell: bash run: | version=$(grep -m1 '^version = ' Cargo.toml | cut -d'"' -f2) - out=$(./target/release/sscan --version) + out=$(./target/${{ matrix.target }}/release/sscan --version) echo "$out" [ "$out" = "sscan $version" ] + # --- Windows code signing (SignPath Foundation) ------------------------ + # Runs for release tags once the repository has been given its SignPath + # organisation id (Actions variable) and API token (Actions secret). + # Until then releases are built exactly the same way, unsigned. + - name: Upload unsigned binaries for signing + id: unsigned + if: runner.os == 'Windows' && startsWith(github.ref, 'refs/tags/v') && vars.SIGNPATH_ORGANIZATION_ID != '' + uses: actions/upload-artifact@v4 + with: + name: unsigned-${{ matrix.name }} + path: | + target/${{ matrix.target }}/release/spacescope.exe + target/${{ matrix.target }}/release/sscan.exe + if-no-files-found: error + - name: Sign with SignPath + if: steps.unsigned.outcome == 'success' + uses: signpath/github-action-submit-signing-request@v1 + with: + api-token: ${{ secrets.SIGNPATH_API_TOKEN }} + organization-id: ${{ vars.SIGNPATH_ORGANIZATION_ID }} + project-slug: ${{ vars.SIGNPATH_PROJECT_SLUG || 'spacescope' }} + signing-policy-slug: ${{ vars.SIGNPATH_SIGNING_POLICY_SLUG || 'release-signing' }} + artifact-configuration-slug: ${{ vars.SIGNPATH_ARTIFACT_CONFIGURATION_SLUG || 'windows-binaries' }} + github-artifact-id: ${{ steps.unsigned.outputs.artifact-id }} + wait-for-completion: true + output-artifact-directory: signed + + - name: Package (Windows, signed) + if: runner.os == 'Windows' && steps.unsigned.outcome == 'success' + shell: pwsh + run: ./scripts/package-windows.ps1 -Name ${{ matrix.name }} -ExeDir signed + - name: Package (Windows) + if: runner.os == 'Windows' && steps.unsigned.outcome != 'success' + shell: pwsh + run: ./scripts/package-windows.ps1 -Name ${{ matrix.name }} -ExeDir target/${{ matrix.target }}/release + - name: Package (Debian) + if: runner.os == 'Linux' + run: ./scripts/package-deb.sh ${{ matrix.target }} + - uses: actions/upload-artifact@v4 with: name: spacescope-${{ matrix.name }} @@ -82,6 +124,7 @@ jobs: - uses: actions/download-artifact@v4 with: path: dist + pattern: spacescope-* merge-multiple: true - name: Publish release env: diff --git a/CHANGELOG.md b/CHANGELOG.md index 51d57a0..c09590d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,15 @@ by setting `version` in `Cargo.toml`, adding a section here, and pushing a matching `vX.Y.Z` tag; CI checks the three agree, builds both platforms and publishes the release. +## 1.2.0 + +- A 32-bit Windows build (`SpaceScope-windows-x86.zip`) alongside the 64-bit + one. +- The window opens maximised. `F11` toggles full screen. +- Release builds are prepared for code signing through the SignPath + Foundation; this version itself is still unsigned. +- The website has a privacy policy and a code signing policy. + ## 1.1.1 - Licence changed from MIT to the Apache License 2.0, which adds an explicit diff --git a/Cargo.lock b/Cargo.lock index 546d212..07d221c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2840,7 +2840,7 @@ dependencies = [ [[package]] name = "spacescope" -version = "1.1.1" +version = "1.2.0" dependencies = [ "chrono", "eframe", @@ -2861,7 +2861,7 @@ dependencies = [ [[package]] name = "spacescope-core" -version = "1.1.1" +version = "1.2.0" dependencies = [ "crossbeam-deque", "libc", diff --git a/Cargo.toml b/Cargo.toml index 9d88c40..0a1d57a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ resolver = "2" members = ["crates/core", "crates/app"] [workspace.package] -version = "1.1.1" +version = "1.2.0" edition = "2021" license = "Apache-2.0" authors = ["SkippyNet"] diff --git a/README.md b/README.md index 628c870..b09fd7c 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ treemap), so the biggest things are the biggest shapes. Downloads are on the [releases page](https://github.com/SkippyNet/spacescope/releases/latest); there is also a [project page](https://skippynet.github.io/spacescope/). -**Windows:** unzip `SpaceScope-windows-x64.zip` and run `spacescope.exe`. Nothing to install, no administrator rights needed. For the fast drive scan choose **More → Restart as administrator**. +**Windows:** unzip `SpaceScope-windows-x64.zip` (or `SpaceScope-windows-x86.zip` on 32-bit Windows) and run `spacescope.exe`. The window opens maximised; `F11` switches to full screen. Nothing to install, no administrator rights needed. For the fast drive scan choose **More → Restart as administrator**. **Debian / Ubuntu** (22.04+ / Debian 12+): @@ -70,6 +70,7 @@ Build the `.deb` on the oldest release you want to support (CI uses Ubuntu 22.04 | More / less detail | `+` / `−` buttons | `+` / `-` | | Filter | | `Ctrl+F`, `Esc` clears | | Rescan the current folder | refresh button | `F5` | +| Full screen | | `F11` | You can also start a scan directly: `spacescope C:\Users\me`, or drop a folder onto the window. @@ -166,6 +167,24 @@ any one product; SpaceScope has not been benchmarked head-to-head against other tools. What other tools have that SpaceScope does not (yet): colour tags on files and customisable export templates. +## Code signing policy + +SpaceScope uses the SignPath Foundation for code signing of its Windows +programs. Free code signing is provided by [SignPath.io](https://about.signpath.io/), +with a certificate by the [SignPath Foundation](https://signpath.org/). + +- **What gets signed:** only files built by the public GitHub Actions + workflow from a tagged commit of this repository. Nothing built on a + personal computer is signed. Versions up to 1.2.0 predate signing and are + unsigned. +- **Committers, reviewers and approvers:** the repository owner, + [SkippyNet](https://github.com/SkippyNet). Every change reaches `main` + through a pull request that must pass the build on all platforms. +- **Privacy:** this program will not transfer any information to other + networked systems unless specifically requested by the user or the person + installing or operating it. See the + [privacy policy](https://skippynet.github.io/spacescope/privacy.html). + ## Licence Copyright 2026 SkippyNet. Licensed under the diff --git a/crates/app/src/app.rs b/crates/app/src/app.rs index 2947f19..0dcd1ee 100644 --- a/crates/app/src/app.rs +++ b/crates/app/src/app.rs @@ -542,6 +542,11 @@ impl App { args, }; app.refresh_drives(ctx); + // Fill the screen on start. The builder flag alone is not honoured on + // every platform once an explicit size is also given. + if app.args.size.is_none() { + ctx.send_viewport_cmd(egui::ViewportCommand::Maximized(true)); + } if let Some(path) = app.args.path.clone() { app.start_scan(ctx, &path); } @@ -1935,6 +1940,12 @@ impl eframe::App for App { self.test_hooks(ctx); self.poll_background(ctx); + // F11 toggles true full screen (no title bar or taskbar). + if ctx.input(|i| i.key_pressed(Key::F11)) { + let on = ctx.input(|i| i.viewport().fullscreen.unwrap_or(false)); + ctx.send_viewport_cmd(egui::ViewportCommand::Fullscreen(!on)); + } + let dropped = ctx.input(|i| i.raw.dropped_files.iter().find_map(|f| f.path.clone())); if let Some(p) = dropped { let dir = if p.is_dir() { diff --git a/crates/app/src/main.rs b/crates/app/src/main.rs index 1b15067..780352f 100644 --- a/crates/app/src/main.rs +++ b/crates/app/src/main.rs @@ -27,6 +27,8 @@ fn run(args: app::Args, glow: bool) -> eframe::Result { .with_app_id("spacescope") .with_inner_size([w, h]) .with_min_inner_size([680.0, 440.0]) + // Open filling the screen; the size above is what "restore" returns to. + .with_maximized(args.size.is_none()) .with_icon(icon); let mut options = eframe::NativeOptions { viewport, @@ -35,8 +37,8 @@ fn run(args: app::Args, glow: bool) -> eframe::Result { } else { eframe::Renderer::Wgpu }, - // Test runs must not inherit or disturb the saved window geometry. - persist_window: args.screenshot.is_none() && args.script.is_none() && args.size.is_none(), + // Always start maximised rather than restoring an old window size. + persist_window: false, ..Default::default() }; // A disk tool has no business waking the discrete GPU. diff --git a/docs/index.html b/docs/index.html index 3de9e0b..e525233 100644 --- a/docs/index.html +++ b/docs/index.html @@ -203,10 +203,10 @@

See what is filling your disk

SpaceScope scans a drive or folder and draws every file as a rectangle sized by the space it takes. The biggest things are the biggest shapes.

-

Free. No sign-up, no installer on Windows.

+

Free. No sign-up, no installer on Windows. On an older PC, get the 32-bit Windows version.

@@ -288,7 +288,7 @@

Install

Windows

-

Unzip and run spacescope.exe. To use the fast drive scan, choose More, then Restart as administrator.

+

Unzip and run spacescope.exe. Almost every PC wants the 64-bit download; the 32-bit one is for 32-bit Windows. To use the fast drive scan, choose More, then Restart as administrator.

spacescope.exe C:\Users\me
@@ -300,6 +300,25 @@

Debian and Ubuntu

+
+

Code signing

+

SpaceScope uses the SignPath Foundation for code signing of its Windows programs. Free code signing is provided by SignPath.io, with a certificate by the SignPath Foundation.

+
+
+

What gets signed

+

Only files built by the public GitHub Actions workflow from a tagged commit of this repository. Nothing built on a personal computer is ever signed. Versions up to 1.2.0 were published before signing was set up and are unsigned.

+
+
+

Who decides

+

Committers, reviewers and approvers: the repository owner, SkippyNet. Every change reaches the main branch through a pull request that must pass the build on all platforms.

+
+
+

Your privacy

+

This program will not transfer any information to other networked systems unless specifically requested by the user or the person installing or operating it. See the privacy policy.

+
+
+
+

Releases

Every version, newest first, with what changed and its downloads.

@@ -310,7 +329,7 @@

Releases