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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
126 changes: 52 additions & 74 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,99 +3,77 @@ name: Build Electron App

on:
workflow_dispatch:
push:
tags:
- "v*"

permissions:
contents: write

jobs:
build-windows:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '22'

- name: Install dependencies
run: npm ci

- name: Install app dependencies
run: npx electron-builder install-app-deps

- name: Build Windows app
run: npm run build:win
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload Windows build
uses: actions/upload-artifact@v4
with:
name: windows-installer
path: release/**/*.exe
retention-days: 30
build:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- name: Windows
os: windows-latest
build-script: build:win
artifact-name: windows-release
artifact-paths: |
release/**/*.exe
release/**/latest.yml
- name: macOS
os: macos-latest
build-script: build:mac
artifact-name: macos-release
artifact-paths: |
release/**/*.dmg
release/**/*.zip
release/**/*.blockmap
release/**/latest-mac.yml
- name: Linux
os: ubuntu-latest
build-script: build:linux
artifact-name: linux-release
artifact-paths: |
release/**/*.AppImage
release/**/*.deb
release/**/latest-linux.yml

build-macos:
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '22'

- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-node@v4
with:
python-version: '3.11'
node-version: 22
cache: npm

- name: Install dependencies
run: npm ci

- name: Install app dependencies
run: npx electron-builder install-app-deps

- name: Build macOS app
run: npm run build:mac
- name: Build and publish release assets
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
run: npm run ${{ matrix.build-script }} -- --publish always
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload macOS build
uses: actions/upload-artifact@v4
with:
name: macos-installer
path: release/**/*.dmg
retention-days: 30

build-linux:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '22'

- name: Install dependencies
run: npm ci

- name: Install app dependencies
run: npx electron-builder install-app-deps

- name: Build Linux app
run: npm run build:linux
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build workflow artifacts
if: github.event_name == 'workflow_dispatch'
run: npm run ${{ matrix.build-script }} -- --publish never

- name: Upload Linux build
- name: Upload workflow artifacts
if: github.event_name == 'workflow_dispatch'
uses: actions/upload-artifact@v4
with:
name: linux-installer
path: |
release/**/*.AppImage
release/**/*.zsync
release/**/*.deb
name: ${{ matrix.artifact-name }}-${{ github.run_number }}
path: ${{ matrix.artifact-paths }}
if-no-files-found: error
retention-days: 30
72 changes: 40 additions & 32 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,32 +1,40 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-electron
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
release/**
*.kiro/
# npx electron-builder --mac --win

# Playwright
test-results
playwright-report/
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-electron
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
release/**
*.kiro/
# npx electron-builder --mac --win

# Playwright
test-results
playwright-report/

# Local agent / scratch artifacts
.captures/
.omc/
.omx/
.tmp/
tmp/
backend/data/
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Thank you for considering contributing to this project! By contributing, you hel
2. **Clone Your Fork**
- Clone your forked repository to your local machine:
```bash
git clone https://github.com/your-username/openscreen.git
git clone https://github.com/your-username/autoscreen.git
```

3. **Create a New Branch**
Expand Down Expand Up @@ -43,7 +43,7 @@ Thank you for considering contributing to this project! By contributing, you hel

## Reporting Issues

If you encounter a bug or have a feature request, please open an issue in the [Issues](https://github.com/siddharthvaddem/openscreen/issues) section of this repository. Provide as much detail as possible to help us address the issue effectively.
If you encounter a bug or have a feature request, please use the official Auto Screen support/issues channel for this repository. Provide as much detail as possible to help us address the issue effectively.

## Style Guide

Expand Down
Loading