Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
8102a47
docs: update documentation to target Linux support (#287 #354 #537 #5…
shiftkey Nov 20, 2018
6e13f5c
feat(tooling): add electron-builder config to repository (#254 #496)
shiftkey Nov 1, 2018
80b3dd0
fix: redirect in-app menu for reporting an issue to the fork (#141)
shiftkey Apr 19, 2019
4752f94
fix: allow users to view the app at very low resolution screens
shiftkey May 30, 2019
371d113
feat: add command line script to debian package (#231 #239)
jfgordon2 Mar 29, 2020
b8a5f6e
fix: update About modal by hiding unsupported features on Linux (#241)
jfgordon2 Mar 30, 2020
437b9a2
feat(tooling): detect and support running post-install script with of…
shiftkey Jul 22, 2021
e6e8e2f
feat(tooling): move debian packaging out to dedicated step (#263)
shiftkey Apr 23, 2020
161be20
feat(tooling): move redhat packaging out to own step (#273 #837 #1038)
shiftkey May 17, 2020
cc213a0
feat(tooling): run codeql on linux branch (#302)
shiftkey Jun 24, 2020
f3ca3d2
fix: allow tilde character when specifying a local repository (#317)
Daniel-McCarthy Aug 4, 2020
28279cd
feat(tooling): enable dependabot monitoring for specific dependencies…
shiftkey Feb 15, 2021
c984885
fix: add smaller icons and align with new theme (#395 #530 #561)
ghost-458 Dec 27, 2020
99f44ad
fix: move icons to correct location, update usages in tooling (#606)
shiftkey Oct 3, 2021
6772a25
feat(tooling): flatpak - introduce abstractions to make Flatpak integ…
shiftkey Jul 14, 2021
ceb2d04
feat(tooling): flatpak - locate and launch flatpaked code editors (#602)
Lunarequest Sep 30, 2021
3116b5d
fix: Add additional validation to find the app-specific argument we r…
shiftkey Apr 3, 2022
6560497
fix(tooling): move electron-winstaller to optional dependency to not …
shiftkey Apr 15, 2022
f454d47
feat(tooling) add armv7l support to scripts (#712)
theofficialgman May 7, 2022
beaee08
fix: update electron-builder config to support different architecture…
shiftkey Aug 12, 2024
4dcb6d3
fix: update debian config to support different architectures (#774)
shiftkey Aug 12, 2024
cb9ff58
fix: update redhat config to support different architectures (#774)
shiftkey Aug 12, 2024
c1a28d4
fix: args processing on first launch on linux (#793)
sarim Feb 17, 2023
81d46ee
feat(tooling): update upstream CI settings to work with fork (#393 #4…
shiftkey Dec 17, 2020
0dda846
feat(tooling): update base CI to use configured docker image (#898)
shiftkey Aug 12, 2024
1bf1dd9
feat(tooling): update build scripts to support ARM architectures (#898)
shiftkey Aug 12, 2024
9832902
feat(tooling): update electron-builder package tooling to support AR…
shiftkey Aug 12, 2024
0dff268
feat(tooling): update debian package script to support ARM architectu…
shiftkey Aug 12, 2024
902902b
feat(tooling): update redhat package script to support ARM architectu…
shiftkey Aug 12, 2024
6ac0e22
feat(tooling): enable workflow for ARM32/ARM64 on Ubuntu (#897)
theofficialgman Jul 9, 2023
8fc76fd
feat(tooling): introduce separate publish step which runs after build…
shiftkey Jul 10, 2023
59ebb59
fix(tooling): assorted changes to the upstream CI configuration
shiftkey Dec 20, 2023
0498ced
fix: add an option to use the Windows title bar (#912)
mon-jai Oct 8, 2023
51492c1
feat(tooling): scaffold workflows to handle automated rebasing of cha…
shiftkey Jun 2, 2024
95f96e1
feat(tooling): add support for building and packaging app on Linux
shiftkey Aug 11, 2024
1c7ff1c
Bump electron-packager from 17.1.1 to 17.1.2 (#916)
dependabot[bot] Aug 21, 2023
c86bb93
shells: add Black Box terminal (#1126)
adil192 Sep 15, 2024
be7d0a7
build(deps): bump yaml from 2.5.0 to 2.6.0 (#1123 #1140)
dependabot[bot] Sep 15, 2024
104a408
build(deps-dev): bump electron-builder from 24.13.3 to 25.1.8 (#1122 …
dependabot[bot] Sep 15, 2024
1312f18
build(deps): bump peter-evans/create-pull-request from 6.1.0 to 7.0.5…
dependabot[bot] Sep 15, 2024
f5cceb7
remove windows-argv-parser package and related code (#1156)
shiftkey Nov 8, 2024
120c45c
build(deps): bump yaml from 2.6.0 to 2.7.0 (#1181)
dependabot[bot] Feb 2, 2025
e3d771e
build(deps): bump peter-evans/create-pull-request from 7.0.5 to 7.0.6…
dependabot[bot] Feb 2, 2025
01e6b7e
build(deps): bump electron-installer-common from 0.10.3 to 0.10.4 (#1…
dependabot[bot] Feb 2, 2025
7a133f1
get `arm` CI building again by forking archived packages (#1190)
shiftkey Feb 4, 2025
b8a3d21
bump version of node use for publishing
shiftkey Feb 9, 2025
2ccac35
bump tags to new version of packaging scripts (#1204)
shiftkey Feb 9, 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
4 changes: 0 additions & 4 deletions .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: 🐛 Bug Report
description: File a bug report
body:
- type: markdown
attributes:
value: |
Thanks for filing a bug report! This issue tracker is for [GitHub Desktop](https://desktop.github.com). Please search the issue tracker to see if there is an existing issue for the problem you are experiencing. If you are experiencing issues with the Linux fork of GitHub Desktop please open an issue [in its repository](https://github.com/shiftkey/desktop). If you are experiencing issues with github.com please [contact GitHub Support](https://support.github.com/).
- type: textarea
id: the-problem
attributes:
Expand Down
21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE/installation-issue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: "\U0001F4BB Installation issue"
about: Report a problem when installing the application
title: ''
labels: ''
assignees: ''

---

### Operating System/Distribution

Which distribution of Linux are you using?

### Installer

Which version of the app?
Which installer type?

### What happened?

Provide as much detail as possible. Error messages or output are extremely useful.
15 changes: 13 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,16 @@ updates:
directory: /
schedule:
interval: weekly
# Disable version updates and keep only security updates
open-pull-requests-limit: 0
- package-ecosystem: 'npm'
directory: '/'
open-pull-requests-limit: 5
schedule:
interval: 'weekly'
allow:
- dependency-name: 'electron-builder'
- dependency-name: 'electron-packager'
- dependency-name: 'electron-installer-*'
- dependency-name: 'xvfb-maybe'
- dependency-name: 'yaml'
- dependency-name: 'patch-package'
- dependency-name: 'postinstall-postinstall'
150 changes: 150 additions & 0 deletions .github/workflows/ci-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
name: 'CI / Linux'

on:
push:
branches:
- development
- linux
- 'linux-release-*'
tags:
- 'release-*.*.*-linux*'
- 'release-*.*.*-test*'
pull_request:
branches:
- linux
- linux-vnext
- 'linux-release-*'

jobs:
arm64:
name: Ubuntu arm64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: ${{ inputs.repository || github.repository }}
ref: ${{ inputs.ref }}
submodules: recursive
- name: Package and test application in container
uses: shiftkey/desktop-ubuntu-arm64-packaging@9be09c4b945873e6509baaf690d457aae08cf901
- name: Upload output artifacts
uses: actions/upload-artifact@v4
with:
name: ubuntu-arm64-artifacts
path: |
dist/*.AppImage
dist/*.deb
dist/*.rpm
dist/*.sha256
retention-days: 5
if-no-files-found: error
arm:
name: Ubuntu arm
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: ${{ inputs.repository || github.repository }}
ref: ${{ inputs.ref }}
submodules: recursive
- name: Package and test application in container
uses: shiftkey/desktop-ubuntu-arm-packaging@dd75ebc57f69fdb9319ab2b0fe11b253bb1ff2a4
- name: Upload output artifacts
uses: actions/upload-artifact@v4
with:
name: ubuntu-arm-artifacts
path: |
dist/*.AppImage
dist/*.deb
dist/*.rpm
dist/*.sha256
retention-days: 5
if-no-files-found: error
amd64:
name: Ubuntu x64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: ${{ inputs.repository || github.repository }}
ref: ${{ inputs.ref }}
submodules: recursive
- name: Package and test application in container
uses: shiftkey/desktop-ubuntu-amd64-packaging@ea7b7a6a940a6b907b160b946439c5c7a516f9f1
- name: Upload output artifacts
uses: actions/upload-artifact@v4
with:
name: ubuntu-amd64-artifacts
path: |
dist/*.AppImage
dist/*.deb
dist/*.rpm
dist/*.sha256
retention-days: 5
if-no-files-found: error

publish:
name: Create GitHub release
needs: [arm64, arm, amd64]
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
permissions:
contents: write
steps:
- uses: actions/checkout@v4

- name: Use Node.js 20.17.0
uses: actions/setup-node@v4
with:
node-version: 20.17.0
cache: yarn

- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: './artifacts'

- name: Display structure of downloaded files
run: ls -R
working-directory: './artifacts'

- name: Get tag name without prefix
run: |
RELEASE_TAG=${GITHUB_REF/refs\/tags\//}
echo "RELEASE_TAG=${RELEASE_TAG}" >> $GITHUB_ENV
tagNameWithoutPrefix="${RELEASE_TAG:8}"
echo "RELEASE_TAG_WITHOUT_PREFIX=${tagNameWithoutPrefix}" >> $GITHUB_ENV

# TODO: generate release notes
# - pull in default if version matches X.Y.Z-linux1
# - otherwise stub template

- name: Generate release notes
run: |
node -v
yarn
node -r ts-node/register script/generate-release-notes.ts "${{ github.workspace }}/artifacts" "${{ env.RELEASE_TAG_WITHOUT_PREFIX }}"
RELEASE_NOTES_FILE=script/release_notes.txt
if [[ ! -f "$RELEASE_NOTES_FILE" ]]; then
echo "$RELEASE_NOTES_FILE does not exist. Something might have gone wrong while generating the release notes."
exit 1
fi
echo "Release notes:"
echo "---"
cat ${RELEASE_NOTES_FILE}
echo "---"

- name: Create Release
uses: softprops/action-gh-release@v2
with:
name: GitHub Desktop for Linux ${{ env.RELEASE_TAG_WITHOUT_PREFIX }}
body_path: script/release_notes.txt
files: |
artifacts/**/*.AppImage
artifacts/**/*.deb
artifacts/**/*.rpm
artifacts/**/*.sha256
draft: true
fail_on_unmatched_files: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
11 changes: 9 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@ on:
push:
branches:
- development
- linux
- 'linux-release-*'
tags:
- 'release-*.*.*-linux*'
pull_request:
branches:
- linux
- 'linux-release-*'
workflow_call:
inputs:
repository:
Expand Down Expand Up @@ -70,10 +77,10 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [macos-13-xl-arm64, windows-2019]
os: [macos-13, windows-2019]
arch: [x64, arm64]
include:
- os: macos-13-xl-arm64
- os: macos-13
friendlyName: macOS
- os: windows-2019
friendlyName: Windows
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: 'Code scanning - action'

on:
push:
branches: ['development']
branches: ['development', 'linux']
pull_request:
branches: ['development']
schedule:
Expand Down
74 changes: 74 additions & 0 deletions .github/workflows/create-draft-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: 'Create draft release from upstream'

on:
workflow_dispatch:
inputs:
release:
description: 'Upstream release'
required: true
type: string
publish:
description: 'Whether to publish the release to GitHub on success'
type: boolean
required: false
default: false

jobs:
publish-draft-release:
runs-on: ubuntu-latest
name: Publish draft release
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.CREATE_RELEASE_AUTOMATION_TOKEN }}
- name: Configure git
run: |
git config --global user.name "shiftbot"
git config --global user.email "github@brendanforster.com"
git config --local core.autocrlf "input"
git remote add upstream https://github.com/desktop/desktop.git
shell: bash
- name: Create baseline branch on fork
id: create-baseline-branch
env:
RELEASE_TAG: ${{ inputs.release }}
BASE_BRANCH: 'linux-${{ inputs.release }}'
run: |
git fetch upstream 'refs/tags/*:refs/tags/*'
git fetch origin --unshallow
git checkout -b $BASE_BRANCH $RELEASE_TAG
git push origin $BASE_BRANCH
git config -l --show-origin
shell: bash
- name: Rebase Linux customizations on top of upstream release branch
id: rebase-linux-branch
env:
HEAD_BRANCH: 'apply-changes-${{ inputs.release }}'
BASE_BRANCH: 'linux-${{ inputs.release }}'
UPSTREAM_BRANCH: 'development'
run: |

git fetch origin linux
git fetch origin $UPSTREAM_BRANCH
git checkout -b $HEAD_BRANCH linux
git push origin $HEAD_BRANCH
git submodule update
echo "One last git config output..."
git config -l --show-origin
echo "Commit identifiers before performing rebase..."
echo "BASE_BRANCH: $(git rev-parse $BASE_BRANCH)"
echo "development: $(git rev-parse origin/$UPSTREAM_BRANCH)"
echo "HEAD_BRANCH: $(git rev-parse $HEAD_BRANCH)"
echo "About to run 'git log --oneline --decorate=full --graph $HEAD_BRANCH...origin/$UPSTREAM_BRANCH'..."
git log --oneline --decorate=full --graph $HEAD_BRANCH...origin/$UPSTREAM_BRANCH
echo "About to run 'git rebase --verbose origin/$UPSTREAM_BRANCH $HEAD_BRANCH --onto $BASE_BRANCH'..."
git rebase --verbose origin/$UPSTREAM_BRANCH $HEAD_BRANCH --onto $BASE_BRANCH
git push origin $HEAD_BRANCH
shell: bash
continue-on-error: true
- name: Review current status
id: status
run: |
git status
shell: bash
2 changes: 1 addition & 1 deletion .github/workflows/release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
private_key: ${{ secrets.DESKTOP_RELEASES_APP_PRIVATE_KEY }}

- name: Create Release Pull Request
uses: peter-evans/create-pull-request@v6.0.5
uses: peter-evans/create-pull-request@v7.0.6
if: |
startsWith(github.ref, 'refs/heads/releases/') && !contains(github.ref, 'test')
with:
Expand Down
43 changes: 43 additions & 0 deletions .github/workflows/sync-with-upstream.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: 'Sync main branch with upstream'

on: workflow_dispatch

jobs:
sync-with-upstream:
runs-on: ubuntu-latest
name: Sync main branch with upstream
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.CREATE_RELEASE_AUTOMATION_TOKEN }}
- name: Configure git
run: |
git config --global user.name "shiftbot"
git config --global user.email "github@brendanforster.com"
git remote add upstream https://github.com/desktop/desktop.git
shell: bash
- name: Push development changes from upstream to fork
id: sync-development-branch
run: |
git fetch upstream development
git fetch origin --unshallow
git fetch origin development
git checkout -b development upstream/development
git push origin development
shell: bash
- name: Rebase Linux customizations on top of development branch
id: rebase-linux-branch
run: |
git fetch origin linux
git checkout linux
git log linux...development --oneline
git rebase --verbose development linux
shell: bash
continue-on-error: true
- name: Review current status
id: status
run: |
git status
shell: bash
# TODO: force push this when we're confident that the rebase has succeeded?
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ vendor/windows-argv-parser/build/
junit*.xml
*.swp
tslint-rules/
script/release_notes.txt
Loading
Loading