Skip to content
Closed
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 7 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches: [main]
pull_request:

permissions:
contents: read

jobs:
check:
runs-on: ${{ matrix.os }}
Expand All @@ -14,8 +17,10 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
persist-credentials: false
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 22
cache: npm
Expand Down
85 changes: 71 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@
# uploads its installers to that draft, and once all three have, the release is published and becomes "latest", which is
# what the download links in the README point at.
#
# Signing is optional. With no secrets the installers are unsigned: macOS asks you to open the app with a right-click the
# first time, and Windows SmartScreen asks you to confirm. Add these repository secrets to sign (and notarize) them:
# The Mac app is signed and notarized, and a release without the certificate fails rather than ship one that isn't: a
# missing secret used to be a warning nobody reads, and the unsigned app went out as the release. To build unsigned on
# purpose (a fork, a try-out), run the workflow by hand with "unsigned" ticked, or set the repository variable
# ALLOW_UNSIGNED to true. Windows has no certificate yet, so its installer is unsigned and says so in a warning
# (SmartScreen asks people to confirm). The repository secrets:
# MAC_CSC_LINK, MAC_CSC_KEY_PASSWORD a Developer ID Application certificate (.p12, base64) and its password
# APPLE_API_KEY, APPLE_API_KEY_ID, APPLE_API_ISSUER an App Store Connect API key (.p8, whole or base64) for notarizing
# WIN_CSC_LINK, WIN_CSC_KEY_PASSWORD a Windows code-signing certificate (.pfx, base64) and its password
Expand All @@ -18,14 +21,23 @@ on:
tags: ["v*"]
# Builds every platform without releasing anything, to check the build.
workflow_dispatch:
inputs:
unsigned:
description: Build the Mac app unsigned when there is no certificate
type: boolean
default: false

# Reading is all a build needs. Only the jobs that make, fill and publish the release may write to it: the build runs
# every dependency's install script, and with a token that could write it could rewrite the release people update from.
permissions:
contents: write
contents: read

jobs:
prepare:
if: ${{ startsWith(github.ref, 'refs/tags/') }}
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Make the draft release
env:
Expand All @@ -46,8 +58,12 @@ jobs:
os: [macos-15, windows-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
# Third-party actions are named by commit, not by a tag that can be moved. The token isn't left on the disk for
# what npm ci runs to find.
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
persist-credentials: false
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 22
cache: npm
Expand All @@ -64,6 +80,7 @@ jobs:
APPLE_ISSUER: ${{ secrets.APPLE_API_ISSUER }}
WIN_CERT: ${{ secrets.WIN_CSC_LINK }}
WIN_CERT_PASSWORD: ${{ secrets.WIN_CSC_KEY_PASSWORD }}
UNSIGNED_OK: ${{ inputs.unsigned == true || vars.ALLOW_UNSIGNED == 'true' }}
run: |
args=(--publish never)
if [ "$RUNNER_OS" = "macOS" ]; then
Expand All @@ -82,13 +99,20 @@ jobs:
export APPLE_API_KEY="$RUNNER_TEMP/AuthKey.p8"
export APPLE_API_KEY_ID="$(printf %s "$APPLE_KEY_ID" | tr -d '[:space:]')"
export APPLE_API_ISSUER="$(printf %s "$APPLE_ISSUER" | tr -d '[:space:]')"
else
elif [ "$UNSIGNED_OK" = "true" ]; then
export CSC_IDENTITY_AUTO_DISCOVERY=false
args+=(-c.mac.notarize=false)
echo "::warning::No Developer ID certificate and notarization key: building an unsigned Mac app."
echo "::warning::No Developer ID certificate and notarization key: building an unsigned Mac app, as asked."
else
echo "::error::No Developer ID certificate (MAC_CSC_LINK) or notarization key (APPLE_API_KEY): the Mac app would ship unsigned. Add the secrets, or run by hand with \"unsigned\" ticked (or set the repository variable ALLOW_UNSIGNED=true) to build it unsigned on purpose."
exit 1
fi
elif [ "$RUNNER_OS" = "Windows" ]; then
if [ -n "$WIN_CERT" ]; then
export WIN_CSC_LINK="$WIN_CERT" WIN_CSC_KEY_PASSWORD="$WIN_CERT_PASSWORD"
else
echo "::warning::No Windows certificate (WIN_CSC_LINK): building an unsigned Windows installer."
fi
elif [ "$RUNNER_OS" = "Windows" ] && [ -n "$WIN_CERT" ]; then
export WIN_CSC_LINK="$WIN_CERT" WIN_CSC_KEY_PASSWORD="$WIN_CERT_PASSWORD"
fi
# Stapling the notarization ticket asks Apple's servers, which drop the connection now and then ("The network
# connection was lost", error 68: v0.2.11 and v0.2.12 both failed on it once). The build is tried up to three times.
Expand Down Expand Up @@ -122,9 +146,39 @@ jobs:
curl -sf http://127.0.0.1:4599/api/info > /dev/null || { echo "::error::The AppImage didn't start."; exit 1; }
if grep -q "Cannot find module" "$RUNNER_TEMP/app.log"; then echo "::error::The AppImage is missing a module."; exit 1; fi

# Only what people download (and electron-builder's checksums beside them), never the unpacked app folders.
- name: Attach the installers to the draft
# Only what people download (and electron-builder's checksums beside them), never the unpacked app folders. Handed
# to the attach job below: this one, which ran npm ci, has no token that can write to the release.
- name: Hand the installers on
if: ${{ startsWith(github.ref, 'refs/tags/') }}
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: installers-${{ runner.os }}
path: |
release/*.dmg
release/*.zip
release/*.exe
release/*.AppImage
release/*.blockmap
release/latest*.yml
if-no-files-found: error
# Already packed, and only needed until the next job has them.
compression-level: 0
retention-days: 1

# The one job that writes the installers to the draft. Whatever was built is attached, as before, when a platform failed.
attach:
needs: build
if: ${{ always() && startsWith(github.ref, 'refs/tags/') }}
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
with:
pattern: installers-*
path: release
merge-multiple: true
- name: Attach the installers to the draft
shell: bash
env:
GH_TOKEN: ${{ github.token }}
Expand All @@ -135,13 +189,15 @@ jobs:
files=(release/*.dmg release/*.zip release/*.exe release/*.AppImage release/*.blockmap release/latest*.yml)
[ ${#files[@]} -gt 0 ] || { echo "::error::No installers were built."; exit 1; }
gh release upload "$TAG" "${files[@]}" --repo "$GITHUB_REPOSITORY" --clobber
echo "### Friday $TAG ($RUNNER_OS)" >> "$GITHUB_STEP_SUMMARY"
echo "### Friday $TAG" >> "$GITHUB_STEP_SUMMARY"
for f in "${files[@]}"; do echo "- ${f##*/}" >> "$GITHUB_STEP_SUMMARY"; done

publish:
needs: build
needs: [build, attach]
if: ${{ startsWith(github.ref, 'refs/tags/') }}
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Publish the release
env:
Expand All @@ -160,7 +216,8 @@ jobs:
steps:
- name: Submit the new version to winget
if: ${{ env.WINGET_TOKEN != '' }}
uses: vedantmgoyal9/winget-releaser@v2
# By commit (the v2 tag as of 2026-11-27), not the tag: it is handed a token that can write to GitHub as its owner.
uses: vedantmgoyal9/winget-releaser@b7370d4d152efdce803a26cc6ca9eee58cb2ad54 # v2
with:
identifier: FridayWork.Friday
installers-regex: 'Friday-Setup\.exe$'
Expand Down
7 changes: 5 additions & 2 deletions build/entitlements.mac.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,18 @@
The JIT and unsigned-memory pairs are Electron's own: V8 compiles as it runs. Library validation is off so the terminal's
module and your coding tools, signed by other people, can load and run. The microphone is for voice input, the network for
Friday's own server on 127.0.0.1 and the previews of what you build.

Not allow-dyld-environment-variables: nothing here sets a DYLD_ variable, and with it any process on the computer could
start Friday with a library of its own loaded inside it, under Friday's name and its microphone and screen permissions
(security audit 2026-11-27, desktop M5). Library validation stays off: the editor's own Node loads extensions' native
modules, which are signed by other people.
-->
<plist version="1.0">
<dict>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
<true/>
<key>com.apple.security.cs.disable-library-validation</key>
<true/>
<key>com.apple.security.device.audio-input</key>
Expand Down
5 changes: 4 additions & 1 deletion e2e/fixtures/fake-gh.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ if (process.env.FAKE_GH_DIR) {
if (dir) appendFileSync(path.join(dir, "calls.log"), `${args.join(" ")}\n`);
const read = (name) => (dir && existsSync(path.join(dir, name)) ? readFileSync(path.join(dir, name), "utf8") : null);

if (args[0] === "pr" && args[1] === "view") {
// An automation watching a repository (automations.ts gh.watch): who's signed in, and the open issues in issues.json.
if (args[0] === "api" && args[1] === "user") process.stdout.write("ada\n");
else if (args[0] === "issue" && args[1] === "list") process.stdout.write(read("issues.json") ?? "[]");
else if (args[0] === "pr" && args[1] === "view") {
const pr = read("pr.json");
if (pr === null) {
process.stderr.write('no pull requests found for branch "refunds"\n');
Expand Down
64 changes: 32 additions & 32 deletions package-lock.json

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

11 changes: 9 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "friday-work",
"version": "0.4.4",
"version": "0.4.5",
"description": "One app for all your coding agents: Claude Code, Codex, Cursor and more, side by side or splitting a job, on your own computer. No account, nothing hosted.",
"license": "MIT",
"homepage": "https://www.tryfridaywork.com",
Expand Down Expand Up @@ -65,7 +65,7 @@
"shiki": "^4.4.3",
"streamdown": "2.6.0",
"tailwind-merge": "^3.6.0",
"undici": "7.29.1",
"undici": "7.30.2",
"ws": "^8.21.3",
"tsx": "^4.23.13"
},
Expand Down Expand Up @@ -107,6 +107,13 @@
"filter": [
"**/*"
]
},
{
"from": "build/host-package",
"to": "host-package",
"filter": [
"friday.tgz"
]
}
],
"directories": {
Expand Down
Loading
Loading