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
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ jobs:
unzip -t release/*.streamDeckPlugin
test "$(unzip -Z1 release/*.streamDeckPlugin | cut -d/ -f1 | sort -u)" = "com.christitustech.codex-status.sdPlugin"

- name: Verify reproducible package
if: matrix.node == 24
run: |
first=$(sha256sum -- release/*.streamDeckPlugin | cut -d' ' -f1)
TZ=Pacific/Auckland npm run package
second=$(sha256sum -- release/*.streamDeckPlugin | cut -d' ' -f1)
test "$first" = "$second"

- name: Upload packaged plugin
if: matrix.node == 24
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
Expand Down
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project are documented here. The format is based on

## [Unreleased]

## [1.0.1] - 2026-07-14

### Fixed

- Encode package timestamps in UTC so release archives are byte-for-byte reproducible across builder timezones.

## [1.0.0] - 2026-07-14

### Added
Expand All @@ -14,5 +20,6 @@ All notable changes to this project are documented here. The format is based on
- Reproducible `.streamDeckPlugin` packaging.
- Automated tests, CI, release checksums, and build provenance attestations.

[Unreleased]: https://github.com/ChrisTitusTech/streamdeck-dashboard/compare/v1.0.0...HEAD
[Unreleased]: https://github.com/ChrisTitusTech/streamdeck-dashboard/compare/v1.0.1...HEAD
[1.0.1]: https://github.com/ChrisTitusTech/streamdeck-dashboard/compare/v1.0.0...v1.0.1
[1.0.0]: https://github.com/ChrisTitusTech/streamdeck-dashboard/releases/tag/v1.0.0
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ npm run package
The release command creates:

```text
release/codex-status-v1.0.0.streamDeckPlugin
release/codex-status-vX.Y.Z.streamDeckPlugin
```

For local development installation:
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "streamdeck-codex-status",
"version": "1.0.0",
"version": "1.0.1",
"private": true,
"description": "OpenDeck plugin that shows whether local Codex sessions are working, complete, or offline.",
"license": "MIT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@
"Platform": "linux"
}
],
"Version": "1.0.0"
"Version": "1.0.1"
}
8 changes: 4 additions & 4 deletions scripts/lib/zip.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ function crc32(buffer) {
}

function dosTimestamp(date) {
const year = Math.max(1980, date.getFullYear());
const time = (date.getHours() << 11) | (date.getMinutes() << 5) | Math.floor(date.getSeconds() / 2);
const day = ((year - 1980) << 9) | ((date.getMonth() + 1) << 5) | date.getDate();
const year = Math.max(1980, date.getUTCFullYear());
const time = (date.getUTCHours() << 11) | (date.getUTCMinutes() << 5) | Math.floor(date.getUTCSeconds() / 2);
const day = ((year - 1980) << 9) | ((date.getUTCMonth() + 1) << 5) | date.getUTCDate();
return { day, time };
}

Expand Down Expand Up @@ -107,4 +107,4 @@ export async function createZip(sourceDirectory, destination, archiveRoot) {
return files.map((file) => `${archiveRoot}/${file}`);
}

export { crc32 };
export { crc32, dosTimestamp };
7 changes: 7 additions & 0 deletions test/zip.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,10 @@ test('ZIP CRC-32 implementation matches the standard check value', async () => {
const { crc32 } = await import('../scripts/lib/zip.mjs');
assert.equal(crc32(Buffer.from('123456789')), 0xcbf43926);
});

test('ZIP timestamp encoding is fixed to UTC', async () => {
const { dosTimestamp } = await import('../scripts/lib/zip.mjs');
const timestamp = dosTimestamp(new Date('1980-01-01T00:00:00Z'));

assert.deepEqual(timestamp, { day: 33, time: 0 });
});