Skip to content

docs: update README #17

docs: update README

docs: update README #17

Workflow file for this run

name: Build macOS Server
on:
push:
branches: [ "master" ]
paths:
- 'server/**'
- 'web-client/**'
- '.github/workflows/build_macos.yml'
workflow_dispatch:
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
# --- 1. Build Web Client ---
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: web-client/package-lock.json
- name: Build Web Client
working-directory: ./web-client
run: |
npm ci
npm run build
# --- 2. Build Python Server ---
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: '3.13'
enable-cache: true
cache-dependency-glob: "server/uv.lock"
- name: Build with PyInstaller
working-directory: ./server
# --add-data format for macOS/Linux: "source_path:dest_folder_name" (separator is :)
run: |
uv run --frozen pyinstaller --clean --onefile --noconsole --name "RemoteMouse" --exclude-module tkinter --exclude-module unittest --add-data "../web-client/dist:web_dist" --add-data "src/server/assets:assets" src/server/main.py
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: RemoteMouse-macos
path: server/dist/RemoteMouse