Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
03b8419
build(deps): bump amannn/action-semantic-pull-request (#105)
dependabot[bot] Jul 1, 2024
9495fc3
build: fix repository.url in package.json (#108)
dsanders11 Sep 7, 2024
dd52b47
build: bump lint-staged to clear audit (#109)
dsanders11 Oct 2, 2024
bf62ed4
chore: bump continuousauth/npm in .circleci/config.yml to 2.1.1 (#110)
electron-roller[bot] Oct 3, 2024
ef4ce1f
chore: bump electronjs/node in .circleci/config.yml to 2.3.1 (#111)
electron-roller[bot] Oct 26, 2024
915c061
build(deps): bump dsanders11/project-actions from 1.3.0 to 1.4.0 (#112)
dependabot[bot] Nov 9, 2024
7f59407
build(deps): bump cross-spawn from 7.0.3 to 7.0.6 (#114)
dependabot[bot] Nov 18, 2024
caa0567
ci: switch to GHA (#115)
dsanders11 Dec 3, 2024
4bf3341
build(deps): bump dsanders11/project-actions from 1.4.0 to 1.5.1 (#119)
dependabot[bot] Feb 1, 2025
d76ca76
build(deps): bump actions/setup-node from 4.1.0 to 4.2.0 (#118)
dependabot[bot] Feb 1, 2025
7c0ad6c
test: giving steroids to the test suite 💪 (#122)
mmaietta Feb 19, 2025
d90d573
test: add test `should shim asars with different unpacked dirs` (#125)
mmaietta Feb 22, 2025
740dd4a
chore(deps): bump `@electron/asar` to `3.3.1` (#127)
erikian Feb 23, 2025
2b67c90
fix: Allow `EnableEmbeddedAsarIntegrityValidation` when multiple asar…
mmaietta Feb 28, 2025
977baa4
test: add explicit imports for `jest` functions (#128)
erikian Apr 1, 2025
4276c7c
build(deps): bump actions/setup-node from 4.2.0 to 4.3.0 (#131)
dependabot[bot] Apr 1, 2025
5b957e6
build(deps): bump dsanders11/project-actions from 1.5.1 to 1.7.0 (#132)
dependabot[bot] Apr 1, 2025
ec7c971
build(deps): bump actions/setup-node from 4.3.0 to 4.4.0 (#134)
dependabot[bot] May 1, 2025
64be29d
fix: Skip `lipo` if native module is already universal. Add native mo…
mmaietta May 2, 2025
1695dc9
ci: timeout release job after 1 hour (#136)
dsanders11 May 9, 2025
175672e
test: update snapshot to remove skipped test (#138)
dsanders11 May 28, 2025
421713c
feat!: bump engines to Node.js >=22.12.0 (#139)
dsanders11 Jul 3, 2025
b8379c0
fix: don't star import from plist package (#141)
dsanders11 Jul 31, 2025
4eb37fa
build(deps): bump actions/checkout from 4.2.2 to 5.0.0 (#143)
dependabot[bot] Sep 2, 2025
9a2c19c
build(deps): bump amannn/action-semantic-pull-request (#142)
dependabot[bot] Sep 2, 2025
01eec61
build(deps): bump vite from 6.3.5 to 6.3.6 (#145)
dependabot[bot] Sep 10, 2025
436b2ab
build(deps): bump actions/setup-node from 4.4.0 to 5.0.0 (#146)
dependabot[bot] Oct 1, 2025
7a73b77
build(deps): bump azure/cli from 2.1.0 to 2.2.0 (#147)
dependabot[bot] Oct 1, 2025
355fd7c
build: upgrade to Yarn v4 (#149)
erickzhao Oct 17, 2025
2e087ef
build(deps): bump brace-expansion from 1.1.11 to 1.1.12 (#150)
dependabot[bot] Oct 17, 2025
0939980
fix: fully respect `singleArchFiles` option (#152)
indutny-signal Oct 29, 2025
ed04594
build(deps): bump actions/setup-node from 5.0.0 to 6.0.0 (#153)
dependabot[bot] Nov 3, 2025
0a0b41d
build(deps): bump vite from 6.3.6 to 6.4.1 (#154)
dependabot[bot] Nov 4, 2025
b616385
docs: add API docs and clean up README (#155)
erickzhao Nov 12, 2025
53c72d8
ci: use npm trusted publishing instead of CFA (#156)
VerteDinde Nov 13, 2025
1b9f5eb
build(deps): bump tar from 7.5.1 to 7.5.2 (#157)
dependabot[bot] Nov 27, 2025
ca53e14
build(deps): bump actions/checkout from 5.0.0 to 6.0.0 (#158)
dependabot[bot] Dec 1, 2025
bf1269f
build(deps): bump glob from 10.4.5 to 10.5.0 (#159)
dependabot[bot] Dec 1, 2025
f91c77b
Merge remote-tracking branch 'origin/main' into esm-asar-entrypoints
krombel Dec 15, 2025
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
35 changes: 0 additions & 35 deletions .circleci/config.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/add-to-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
creds: ${{ secrets.ECOSYSTEM_ISSUE_TRIAGE_GH_APP_CREDS }}
org: electron
- name: Add to Project
uses: dsanders11/project-actions/add-item@eb760c48894b5702398529cbb8f6e98378e315d0 # v1.3.0
uses: dsanders11/project-actions/add-item@2134fe7cc71c58b7ae259c82a8e63c6058255678 # v1.7.0
with:
field: Opened
field-value: ${{ github.event.pull_request.created_at || github.event.issue.created_at }}
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Publish documentation

on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+*

permissions:
id-token: write
contents: read

jobs:
docs:
runs-on: ubuntu-latest
environment: docs-publish
steps:
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Install dependencies
run: yarn --immutable
- name: Build API documentation
run: yarn build:docs
- name: Azure login
uses: azure/login@a457da9ea143d694b1b9c7c869ebb04ebe844ef5 # v2.3.0
with:
client-id: ${{ secrets.AZURE_OIDC_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_OIDC_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_OIDC_SUBSCRIPTION_ID }}
- name: Upload to Azure Blob Storage
uses: azure/cli@9f7ce6f37c31b777ec6c6b6d1dfe7db79f497956 # v2.2.0
with:
inlineScript: |
az storage blob upload-batch --account-name ${{ secrets.AZURE_ECOSYSTEM_PACKAGES_STORAGE_ACCOUNT_NAME }} -d '$web/${{ github.event.repository.name }}/${{ github.ref_name }}' -s ./docs --overwrite --auth-mode login
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Release

on:
push:
branches:
- main

jobs:
test:
uses: ./.github/workflows/test.yml

release:
name: Release
runs-on: ubuntu-latest
needs: test
environment: npm-trusted-publisher
permissions:
id-token: write # for publishing releases
steps:
- name: Checkout
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Install
run: yarn install --immutable
- name: Get GitHub App Token
id: secret-service
uses: electron/secret-service-action@3476425e8b30555aac15b1b7096938e254b0e155 # v1.0.0
- name: Run Semantic Release
uses: electron/semantic-trusted-release@5eceb399ac8de8863205cf6e34109bce473ba566 # v1.0.1
with:
github-token: ${{ fromJSON(steps.secret-service.outputs.secrets).GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/semantic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: semantic-pull-request
uses: amannn/action-semantic-pull-request@cfb60706e18bc85e8aec535e3c577abe8f70378e # v5.5.2
uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Test

on:
pull_request:
branches:
- main
schedule:
- cron: '0 22 * * 3'
workflow_call:

permissions:
contents: read

jobs:
test:
name: Test
strategy:
fail-fast: false
matrix:
node-version:
- 22.12.x
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
- name: Setup Node.js
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
node-version: "${{ matrix.node-version }}"
cache: 'yarn'
- name: Install
run: yarn install --immutable
- name: Build
run: yarn build
- name: Lint
run: yarn lint
- name: Test
run: yarn test
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ entry-asar/esm/*.d.?ts
test/fixtures/apps
coverage
docs
.vscode
.vscode
.yarn/install-state.gz
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn lint-staged
5 changes: 5 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# npmignore overrides .gitignore for yarn pack
# Only exclude source files, not built files
entry-asar/**/*.mts
entry-asar/**/*.ts
entry-asar/**/tsconfig.json
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22.12
2 changes: 1 addition & 1 deletion .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@continuous-auth/semantic-release-npm",
"@semantic-release/npm",
"@semantic-release/github"
],
"branches": [ "main" ]
Expand Down
942 changes: 942 additions & 0 deletions .yarn/releases/yarn-4.10.3.cjs

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
enableScripts: false

nodeLinker: node-modules

npmMinimalAgeGate: 10080

npmPreapprovedPackages:
- "@electron/*"

yarnPath: .yarn/releases/yarn-4.10.3.cjs
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

> Create universal macOS Electron applications

[![CircleCI](https://circleci.com/gh/electron/universal/tree/main.svg?style=shield)](https://circleci.com/gh/electron/universal)
[![Test](https://github.com/electron/universal/actions/workflows/test.yml/badge.svg)](https://github.com/electron/universal/actions/workflows/test.yml)
[![NPM package](https://img.shields.io/npm/v/@electron/universal)](https://npm.im/@electron/universal)
[![API docs](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fregistry.npmjs.org%2F%40electron%2Funiversal%2Flatest&query=%24.version&logo=typescript&logoColor=white&label=API%20Docs)](https://packages.electronjs.org/universal)

## Usage

Expand All @@ -22,6 +23,8 @@ await makeUniversalApp({
});
```

For full API usage, see the [API documentation](https://packages.electronjs.org/universal).

## Advanced configuration

The basic usage patterns will work for most apps out of the box. Additional configuration
Expand Down Expand Up @@ -118,8 +121,4 @@ Note that if you are using `mergeASARs`, you may need to add architecture-specif
binary resources to the `singleArchFiles` pattern.
See [Merging ASARs usage](#merging-asar-archives-to-reduce-app-size) for an example.

#### How do I build my app for Apple silicon in the first place?

Check out the [Electron Apple silicon blog post](https://www.electronjs.org/blog/apple-silicon).

[`minimatch`]: https://github.com/isaacs/minimatch?tab=readme-ov-file#features
3 changes: 2 additions & 1 deletion entry-asar/esm/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"extends": "../../tsconfig.esm.json",
"extends": "../../tsconfig.json",
"compilerOptions": {
"module": "ESNext",
"target":"ESNext",
"outDir": ".",
"moduleResolution": "bundler"
},
"include": [
".",
Expand Down
14 changes: 0 additions & 14 deletions jest.config.js

This file was deleted.

73 changes: 0 additions & 73 deletions jest.setup.ts

This file was deleted.

Loading