diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..eeb9c91 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,31 @@ +name: Build and Release + +on: + push: + tags: + - 'v*' # Triggers automatically when you push a tag like v1.0.0 + +jobs: + build: + runs-on: ubuntu-22.04 # Using an older LTS ensures maximum glibc compatibility + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y build-essential libsdl2-dev libsdl2-image-dev pkg-config + + - name: Compile binary + run: make + + - name: Rename binary for distribution + run: mv game-splash game-splash-linux-x86_64 + + - name: Create GitHub Release + uses: softprops/action-gh-release@v2 + with: + files: game-splash-linux-x86_64 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/README.md b/README.md index 3f44c4c..96fd6da 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,14 @@ A fullscreen splash-screen wrapper for launching a game or app. It displays an i ## Install +Arch Linux (PKGBUILD) for integrating with your system package manager: + +```bash +makepkg -si +``` + +For other distributions, build and install manually: + ```bash make sudo make install