Skip to content
Open
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
  •  
  •  
  •  
15 changes: 15 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Changesets

This repo uses [Changesets](https://github.com/changesets/changesets) to manage versions and changelogs for published packages.

How to add a changeset:

1. Run:
```
pnpm changeset
```
2. Select the package(s) that changed (e.g. `@kando/core`) and choose the bump type.
3. Write a brief release note. Commit the created file in `.changeset/`.

On merge to `main`, a “Version Packages” PR will be opened; merging it will publish changed packages to npm and create/update `CHANGELOG.md` files.

15 changes: 15 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": [
"kando",
"@kando/renderer-dom"
]
}

48 changes: 36 additions & 12 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,18 @@ jobs:
- uses: actions/[email protected]
with:
node-version-file: .node-version
cache: 'pnpm'
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.22.0
- name: Install Dependencies
run: |
sudo apt install libx11-dev libxtst-dev libwayland-dev libxkbcommon-dev
npm ci
sudo apt update
sudo apt install -y libx11-dev libxtst-dev libwayland-dev libxkbcommon-dev
pnpm install --frozen-lockfile
- name: Run Tests
run: npm run test
run: pnpm -r test --if-present

eslint:
name: ESLint
Expand All @@ -40,12 +46,18 @@ jobs:
- uses: actions/[email protected]
with:
node-version-file: .node-version
cache: 'pnpm'
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.22.0
- name: Install Dependencies
run: |
sudo apt install libx11-dev libxtst-dev libwayland-dev libxkbcommon-dev
npm ci
sudo apt update
sudo apt install -y libx11-dev libxtst-dev libwayland-dev libxkbcommon-dev
pnpm install --frozen-lockfile
- name: Run ESLint
run: npm run lint
run: pnpm -r lint --if-present

prettier:
name: Prettier
Expand All @@ -57,12 +69,18 @@ jobs:
- uses: actions/[email protected]
with:
node-version-file: .node-version
cache: 'pnpm'
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.22.0
- name: Install Dependencies
run: |
sudo apt install libx11-dev libxtst-dev libwayland-dev libxkbcommon-dev
npm ci
sudo apt update
sudo apt install -y libx11-dev libxtst-dev libwayland-dev libxkbcommon-dev
pnpm install --frozen-lockfile
- name: Run Prettier
run: npm run prettier
run: pnpm -r prettier --if-present

tscheck:
name: TypeScript Check
Expand All @@ -74,12 +92,18 @@ jobs:
- uses: actions/[email protected]
with:
node-version-file: .node-version
cache: 'pnpm'
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.22.0
- name: Install Dependencies
run: |
sudo apt install libx11-dev libxtst-dev libwayland-dev libxkbcommon-dev
npm ci
sudo apt update
sudo apt install -y libx11-dev libxtst-dev libwayland-dev libxkbcommon-dev
pnpm install --frozen-lockfile
- name: Run TypeScript Check
run: npm run tscheck
run: pnpm -r tscheck --if-present

reuse:
name: REUSE
Expand Down
67 changes: 42 additions & 25 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,30 @@ jobs:
- uses: actions/[email protected]
with:
node-version-file: .node-version
cache: 'pnpm'
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.22.0
- name: Install Dependencies
run: |
sudo apt install libx11-dev libxtst-dev libwayland-dev libxkbcommon-dev
npm install
sudo apt update
sudo apt install -y libx11-dev libxtst-dev libwayland-dev libxkbcommon-dev
pnpm install --frozen-lockfile
- name: Fix Permissions
# Workaround for https://github.com/electron/electron/issues/17972
working-directory: apps/kando
run: |
sudo chmod 4755 node_modules/electron/dist/chrome-sandbox
sudo chown root node_modules/electron/dist/chrome-sandbox
sudo chmod 4755 node_modules/electron/dist/chrome-sandbox || true
sudo chown root node_modules/electron/dist/chrome-sandbox || true
- name: Create Packages
run: |
npm run make
run: pnpm --filter ./apps/kando make
- name: Create AppImage
run: |
tools/make-app-image.sh
run: tools/make-app-image.sh
- name: Upload Packages
uses: svenstaro/[email protected]
with:
file: out/make/**/*
file: '**/out/make/**/*'
tag: ${{ github.ref }}
file_glob: true
prerelease: true
Expand All @@ -61,33 +66,41 @@ jobs:
- uses: actions/[email protected]
with:
node-version-file: .node-version
cache: 'pnpm'
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.22.0
- name: Install Dependencies
run: |
npm install
run: pnpm install --frozen-lockfile
- name: Create Release
run: |
npm run make
run: pnpm --filter ./apps/kando make
- name: Rename Executables
shell: pwsh
env:
MATRIX_OS: ${{ matrix.os }}
run: |
if ($env:MATRIX_OS -eq "windows-2022") {
Get-ChildItem -Path out/make/squirrel.windows/*/*.exe | Rename-Item -NewName { $_.BaseName + "-x64" + $_.Extension }
} elseif ($env:MATRIX_OS -eq "windows-11-arm") {
Get-ChildItem -Path out/make/squirrel.windows/*/*.exe | Rename-Item -NewName { $_.BaseName + "-arm64" + $_.Extension }
$paths = @("out/make/squirrel.windows","apps/kando/out/make/squirrel.windows")
foreach ($p in $paths) {
if (Test-Path $p) {
if ($env:MATRIX_OS -eq "windows-2022") {
Get-ChildItem -Path "$p/*/*.exe" | Rename-Item -NewName { $_.BaseName + "-x64" + $_.Extension }
} elseif ($env:MATRIX_OS -eq "windows-11-arm") {
Get-ChildItem -Path "$p/*/*.exe" | Rename-Item -NewName { $_.BaseName + "-arm64" + $_.Extension }
}
}
}
- name: Upload Zip
uses: svenstaro/[email protected]
with:
file: out/make/zip/win32/*/*
file: '**/out/make/zip/win32/*/*'
tag: ${{ github.ref }}
file_glob: true
prerelease: true
- name: Upload Squirrel Installer
uses: svenstaro/[email protected]
with:
file: out/make/squirrel.windows/*/*.exe
file: '**/out/make/squirrel.windows/*/*.exe'
tag: ${{ github.ref }}
file_glob: true
prerelease: true
Expand All @@ -107,10 +120,15 @@ jobs:
- uses: actions/[email protected]
with:
node-version-file: .node-version
cache: 'pnpm'
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.22.0
- name: Install Dependencies
run: |
npm install
npm install appdmg
pnpm install --frozen-lockfile
pnpm --filter ./apps/kando add -D appdmg
- name: Add macOS certificates
env:
OSX_CERTIFICATE: ${{ secrets.OSX_CERTIFICATE }}
Expand All @@ -124,19 +142,18 @@ jobs:
OSX_APP_SPECIFIC_ID: ${{ secrets.OSX_APP_SPECIFIC_ID }}
OSX_APP_SPECIFIC_PASSWORD: ${{ secrets.OSX_APP_SPECIFIC_PASSWORD }}
OSX_TEAM_ID: ${{ secrets.OSX_TEAM_ID }}
run: |
npm run make
run: pnpm --filter ./apps/kando make
- name: Upload DMG
uses: svenstaro/[email protected]
with:
file: out/make/*.dmg
file: '**/out/make/*.dmg'
tag: ${{ github.ref }}
file_glob: true
prerelease: true
- name: Upload Zip
uses: svenstaro/[email protected]
with:
file: out/make/zip/darwin/**/*.zip
file: '**/out/make/zip/darwin/**/*.zip'
tag: ${{ github.ref }}
file_glob: true
prerelease: true
64 changes: 40 additions & 24 deletions .github/workflows/test_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,26 @@ jobs:
- uses: actions/[email protected]
with:
node-version-file: .node-version
cache: 'pnpm'
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.22.0
- name: Install Dependencies
run: |
sudo apt update
sudo apt install -y libx11-dev libxtst-dev libwayland-dev libxkbcommon-dev flatpak-builder
npm install
pnpm install --frozen-lockfile
- name: Fix Permissions
# Workaround for https://github.com/electron/electron/issues/17972
working-directory: apps/kando
run: |
sudo chmod 4755 node_modules/electron/dist/chrome-sandbox
sudo chown root node_modules/electron/dist/chrome-sandbox
sudo chmod 4755 node_modules/electron/dist/chrome-sandbox || true
sudo chown root node_modules/electron/dist/chrome-sandbox || true
- name: Create Packages
run: |
npm run make
run: pnpm --filter ./apps/kando make
- name: Create AppImage
run: |
tools/make-app-image.sh
run: tools/make-app-image.sh
- name: Create Flatpak bundle
run: |
sudo flatpak remote-add flathub https://flathub.org/repo/flathub.flatpakrepo
Expand All @@ -47,7 +51,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: build-${{ matrix.os }}
path: out/make/**/*
path: '**/out/make/**/*'
retention-days: 7

windows:
Expand All @@ -61,29 +65,37 @@ jobs:
- uses: actions/[email protected]
with:
node-version-file: .node-version
cache: 'pnpm'
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.22.0
- name: Install Dependencies
run: |
npm install
run: pnpm install --frozen-lockfile
- name: Create Release
run: |
npm run make
run: pnpm --filter ./apps/kando make
- name: Rename Executables
shell: pwsh
env:
MATRIX_OS: ${{ matrix.os }}
run: |
if ($env:MATRIX_OS -eq "windows-2022") {
Get-ChildItem -Path out/make/squirrel.windows/*/*.exe | Rename-Item -NewName { $_.BaseName + "-x64" + $_.Extension }
} elseif ($env:MATRIX_OS -eq "windows-11-arm") {
Get-ChildItem -Path out/make/squirrel.windows/*/*.exe | Rename-Item -NewName { $_.BaseName + "-arm64" + $_.Extension }
$paths = @("out/make/squirrel.windows","apps/kando/out/make/squirrel.windows")
foreach ($p in $paths) {
if (Test-Path $p) {
if ($env:MATRIX_OS -eq "windows-2022") {
Get-ChildItem -Path "$p/*/*.exe" | Rename-Item -NewName { $_.BaseName + "-x64" + $_.Extension }
} elseif ($env:MATRIX_OS -eq "windows-11-arm") {
Get-ChildItem -Path "$p/*/*.exe" | Rename-Item -NewName { $_.BaseName + "-arm64" + $_.Extension }
}
}
}
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: build-${{ matrix.os }}
path: |
out/make/zip/win32/*/*
out/make/squirrel.windows/*/*.exe
**/out/make/zip/win32/*/*
**/out/make/squirrel.windows/*/*.exe
retention-days: 7

macos:
Expand All @@ -99,10 +111,15 @@ jobs:
- uses: actions/[email protected]
with:
node-version-file: .node-version
cache: 'pnpm'
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.22.0
- name: Install Dependencies
run: |
npm install
npm install appdmg
pnpm install --frozen-lockfile
pnpm --filter ./apps/kando add -D appdmg
- name: Add macOS certificates
if: ${{ ! github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]' }}
env:
Expand All @@ -117,13 +134,12 @@ jobs:
OSX_APP_SPECIFIC_ID: ${{ secrets.OSX_APP_SPECIFIC_ID }}
OSX_APP_SPECIFIC_PASSWORD: ${{ secrets.OSX_APP_SPECIFIC_PASSWORD }}
OSX_TEAM_ID: ${{ secrets.OSX_TEAM_ID }}
run: |
npm run make
run: pnpm --filter ./apps/kando make
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: build-${{ matrix.os }}
path: |
out/make/*.dmg
out/make/zip/darwin/**/*.zip
**/out/make/*.dmg
**/out/make/zip/darwin/**/*.zip
retention-days: 7
Loading
Loading