-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (62 loc) · 2.34 KB
/
release.yml
File metadata and controls
76 lines (62 loc) · 2.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Build and Release (Debug APK)
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Android SDK
uses: android-actions/setup-android@v3
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build Debug APK
run: ./gradlew assembleDebug
- name: Get version from tag
id: version
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
- name: Rename APK
run: |
VERSION=${{ steps.version.outputs.VERSION }}
mv app/build/outputs/apk/debug/app-debug.apk PSPLinuxController-${VERSION}.apk
- name: Package Server
run: |
VERSION=${{ steps.version.outputs.VERSION }}
cd server
tar -czvf ../PSPLinuxController-Server-${VERSION}.tar.gz \
screen_streamer.py \
psp_controller_server.py \
layout_editor_gui.py \
requirements.txt \
start_server.sh
- name: Create Release
uses: softprops/action-gh-release@v2
with:
name: PSP Linux Controller v${{ steps.version.outputs.VERSION }}
make_latest: true
body: |
## PSP Linux Controller v${{ steps.version.outputs.VERSION }}
Use your Android phone as a wireless controller for PPSSPP on Linux.
### Downloads
- **PSPLinuxController-${{ steps.version.outputs.VERSION }}.apk** - Android app (debug build)
- **PSPLinuxController-Server-${{ steps.version.outputs.VERSION }}.tar.gz** - Linux server + layout editor
### Quick Start
1. Extract the server tarball and run `./start_server.sh`
2. Install the APK on your phone
3. Connect to your PC's IP address
4. Launch PPSSPP and play!
files: |
PSPLinuxController-${{ steps.version.outputs.VERSION }}.apk
PSPLinuxController-Server-${{ steps.version.outputs.VERSION }}.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}