Skip to content

Commit 1e7765f

Browse files
author
Antigravity AI
committed
ci: add multiplatform release workflow and update README
1 parent fa86c23 commit 1e7765f

2 files changed

Lines changed: 95 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
name: Auto-Build Executables
2+
3+
on:
4+
release:
5+
types: [published]
6+
workflow_dispatch:
7+
inputs:
8+
tag:
9+
description: 'Release tag to attach binaries to (e.g., v1.5.0)'
10+
required: true
11+
default: 'v1.5.0'
12+
13+
permissions:
14+
contents: write
15+
16+
jobs:
17+
build:
18+
name: Build on ${{ matrix.os }}
19+
runs-on: ${{ matrix.os }}
20+
strategy:
21+
matrix:
22+
os: [ubuntu-latest, macos-latest, windows-latest]
23+
24+
steps:
25+
- name: Checkout Code
26+
uses: actions/checkout@v4
27+
28+
- name: Set up Python
29+
uses: actions/setup-python@v5
30+
with:
31+
python-version: '3.11'
32+
33+
- name: Install System Dependencies (Linux)
34+
if: matrix.os == 'ubuntu-latest'
35+
run: |
36+
sudo apt-get update
37+
sudo apt-get install -y python3-tk
38+
39+
- name: Install Python Dependencies
40+
run: |
41+
python -m pip install --upgrade pip
42+
pip install Pillow pyinstaller
43+
44+
- name: Build Windows Executable
45+
if: matrix.os == 'windows-latest'
46+
run: |
47+
pyinstaller --noconfirm --onedir --windowed --icon=BlackGlass.ico BlackGlass.py
48+
Compress-Archive -Path "dist\BlackGlass\*" -DestinationPath "BlackGlass-Windows.zip" -Force
49+
50+
- name: Build macOS Executable
51+
if: matrix.os == 'macos-latest'
52+
run: |
53+
pyinstaller --noconfirm --onedir --windowed --icon=BlackGlass.ico BlackGlass.py
54+
cd dist
55+
zip -r ../BlackGlass-macOS.zip BlackGlass.app
56+
57+
- name: Build Linux Executable
58+
if: matrix.os == 'ubuntu-latest'
59+
run: |
60+
pyinstaller --noconfirm --onedir --windowed --icon=BlackGlass.ico BlackGlass.py
61+
cd dist
62+
zip -r ../BlackGlass-Linux.zip BlackGlass
63+
64+
- name: Upload Artifact
65+
uses: actions/upload-artifact@v4
66+
with:
67+
name: build-${{ matrix.os }}
68+
path: |
69+
*.zip
70+
71+
release:
72+
needs: build
73+
runs-on: ubuntu-latest
74+
if: github.event_name == 'release' || github.event_name == 'workflow_dispatch'
75+
permissions:
76+
contents: write
77+
steps:
78+
- name: Download Artifacts
79+
uses: actions/download-artifact@v4
80+
with:
81+
path: artifacts
82+
merge-multiple: true
83+
84+
- name: Create Release
85+
uses: softprops/action-gh-release@v2
86+
with:
87+
tag_name: ${{ github.event.inputs.tag || github.ref_name }}
88+
files: |
89+
artifacts/*.zip
90+
env:
91+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# BlackGlass 1.4
22

3+
[![Python 3.7+](https://img.shields.io/badge/python-3.7+-blue.svg)](https://www.python.org/downloads/)
4+
[![Platform](https://img.shields.io/badge/platform-Windows%20%7C%20macOS%20%7C%20Linux-lightgray.svg)](https://github.com/)
5+
[![Build Status](https://github.com/neohiro/BlackGlass/actions/workflows/release.yml/badge.svg)](https://github.com/neohiro/BlackGlass/actions)
6+
37
<img width="256" height="256" alt="image" src="https://github.com/user-attachments/assets/0bfe5e2b-0043-466c-afc4-141d5138b68d" />
48

59
Black Glass is a new chat viewer for Second Life, boasting a multi client login functionality.

0 commit comments

Comments
 (0)