refactoring app name to spacetris and new icon

This commit is contained in:
2025-12-21 10:29:01 +01:00
parent 18c29fed1e
commit a6c2c78cb5
26 changed files with 402 additions and 951 deletions

View File

@ -1,4 +1,4 @@
# Copilot Instructions — Tetris (C++ SDL3)
# Copilot Instructions — Spacetris (C++ SDL3)
Purpose: Speed up development on this native SDL3 Tetris. Follow these conventions to keep builds reproducible and packages shippable.
@ -9,11 +9,9 @@ Purpose: Speed up development on this native SDL3 Tetris. Follow these conventio
- Assets: `assets/` (images/music/fonts), plus `FreeSans.ttf` at repo root.
## Build and run
- Configure and build Release:
- CMake picks up vcpkg toolchain if found (`VCPKG_ROOT`, local `vcpkg/`, or user path). Required packages: `sdl3`, `sdl3-ttf` (see `vcpkg.json`).
- Typical sequence (PowerShell): `cmake -S . -B build-release -DCMAKE_BUILD_TYPE=Release` then `cmake --build build-release --config Release`.
- Packaging: `.\build-production.ps1` creates `dist/TetrisGame/` with exe, DLLs, assets, README, and ZIP; it can clean via `-Clean` and package-only via `-PackageOnly`.
- MSVC generator builds are under `build-msvc/` when using Visual Studio.
Packaging: `.\build-production.ps1` creates `dist/SpacetrisGame/` with exe, DLLs, assets, README, and ZIP; it can clean via `-Clean` and package-only via `-PackageOnly`.
## Runtime dependencies
- Links: `SDL3::SDL3`, `SDL3_ttf::SDL3_ttf`; on Windows also `mfplat`, `mfreadwrite`, `mfuuid` for media.

View File

@ -1,4 +1,4 @@
name: Build and Package Tetris
name: Build and Package Spacetris
on:
push:
@ -43,20 +43,20 @@ jobs:
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: tetris-windows-x64
path: dist/TetrisGame/
name: spacetris-windows-x64
path: dist/SpacetrisGame/
- name: Create Release ZIP
if: startsWith(github.ref, 'refs/tags/v')
run: |
cd dist
7z a ../TetrisGame-Windows-x64.zip TetrisGame/
7z a ../SpacetrisGame-Windows-x64.zip SpacetrisGame/
- name: Release
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v1
with:
files: TetrisGame-Windows-x64.zip
files: SpacetrisGame-Windows-x64.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -83,32 +83,32 @@ jobs:
- name: Package
run: |
mkdir -p dist/TetrisGame-Linux
cp build/tetris dist/TetrisGame-Linux/
cp -r assets dist/TetrisGame-Linux/
cp FreeSans.ttf dist/TetrisGame-Linux/
echo '#!/bin/bash' > dist/TetrisGame-Linux/launch-tetris.sh
echo 'cd "$(dirname "$0")"' >> dist/TetrisGame-Linux/launch-tetris.sh
echo './tetris' >> dist/TetrisGame-Linux/launch-tetris.sh
chmod +x dist/TetrisGame-Linux/launch-tetris.sh
chmod +x dist/TetrisGame-Linux/tetris
mkdir -p dist/SpacetrisGame-Linux
cp build/spacetris dist/SpacetrisGame-Linux/
cp -r assets dist/SpacetrisGame-Linux/
cp FreeSans.ttf dist/SpacetrisGame-Linux/
echo '#!/bin/bash' > dist/SpacetrisGame-Linux/launch-spacetris.sh
echo 'cd "$(dirname "$0")"' >> dist/SpacetrisGame-Linux/launch-spacetris.sh
echo './spacetris' >> dist/SpacetrisGame-Linux/launch-spacetris.sh
chmod +x dist/SpacetrisGame-Linux/launch-spacetris.sh
chmod +x dist/SpacetrisGame-Linux/spacetris
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: tetris-linux-x64
path: dist/TetrisGame-Linux/
name: spacetris-linux-x64
path: dist/SpacetrisGame-Linux/
- name: Create Release TAR
if: startsWith(github.ref, 'refs/tags/v')
run: |
cd dist
tar -czf ../TetrisGame-Linux-x64.tar.gz TetrisGame-Linux/
tar -czf ../SpacetrisGame-Linux-x64.tar.gz SpacetrisGame-Linux/
- name: Release
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v1
with:
files: TetrisGame-Linux-x64.tar.gz
files: SpacetrisGame-Linux-x64.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}