diff --git a/apps/yaScrcpy GUI/credits b/apps/yaScrcpy GUI/credits new file mode 100644 index 0000000000..c06d48e6d4 --- /dev/null +++ b/apps/yaScrcpy GUI/credits @@ -0,0 +1 @@ +Gabreek diff --git a/apps/yaScrcpy GUI/description b/apps/yaScrcpy GUI/description new file mode 100644 index 0000000000..a6d481ecf0 --- /dev/null +++ b/apps/yaScrcpy GUI/description @@ -0,0 +1,46 @@ +This is a user-friendly graphical interface (GUI) to manage Scrcpy and Winlator. +Version: 0.15-alpha + +What is Scrcpy? +Scrcpy is a powerful tool that lets you display and control your Android device's screen on your computer. It's like mirroring your phone screen, but you can also interact with it using your mouse and keyboard. + +What is Winlator? +Winlator is an application for Android that allows you to run Windows programs and games. + +How does this app help? +This GUI makes using Scrcpy and Winlator much easier. Instead of typing commands in a terminal, you get a simple, organized interface to manage your apps and games. + +To run the app, open it from the Start Menu (look for "yaScrcpy GUI") or type `yascrcpy` in your terminal. + +--- + +### Advanced Features + +**Android App Launcher:** +- Automatically lists all installed applications on your device. +- Scrapes app icons from the Google Play Store. +- Supports custom icons via drag-and-drop. +- Save specific scrcpy settings for each app. + +**Winlator Game Launcher:** +- Automatically discovers game shortcuts (.desktop files) from your Winlator installation. (You need to export shortcuts to the frontend in the Winlator app). +- Fetches and caches game icons directly from the game's .exe file. +- Supports custom game icons via drag-and-drop. +- Save specific scrcpy settings for each game, perfect for custom resolutions and performance tuning. + +**Advanced Scrcpy Configuration:** +- A dedicated tab to tweak all major scrcpy settings, including resolution, bitrate, codecs, and more. All settings are saved automatically. +- The scrcpy window will automatically use the game's or app's icon, providing a native look and feel. + +**Using `extraargs` for Advanced Scrcpy Commands:** +The `extraargs` field allows for highly customized scrcpy command execution, including running commands before (`PRE::`) and after (`POST::`) the scrcpy session. + +- **Format:** Combine multiple commands by separating them with a semicolon `;`. + - `PRE::[command]`: Executes a command before scrcpy starts. + - `POST::[command]`: Executes a command after scrcpy exits. + - `[scrcpy_argument]`: Any other text is passed directly as an argument to scrcpy. + +- **Examples:** + - `PRE::adb reverse tcp:8080 tcp:8080; --turn-screen-off` + - `--max-size 1024; POST::adb reverse --remove-all` + - `PRE::echo "Starting scrcpy"; --record file.mp4; POST::echo "Scrcpy finished"` \ No newline at end of file diff --git a/apps/yaScrcpy GUI/icon-24.png b/apps/yaScrcpy GUI/icon-24.png new file mode 100644 index 0000000000..cce2bf2b1c Binary files /dev/null and b/apps/yaScrcpy GUI/icon-24.png differ diff --git a/apps/yaScrcpy GUI/icon-64.png b/apps/yaScrcpy GUI/icon-64.png new file mode 100644 index 0000000000..a367943a33 Binary files /dev/null and b/apps/yaScrcpy GUI/icon-64.png differ diff --git a/apps/yaScrcpy GUI/install-64 b/apps/yaScrcpy GUI/install-64 new file mode 100755 index 0000000000..0a78bc4c76 --- /dev/null +++ b/apps/yaScrcpy GUI/install-64 @@ -0,0 +1,57 @@ +#!/bin/bash + +# Stop on first error +set -e + +# 1. Install dependencies from Pi-Apps and APT +# This is the line you added, now correctly placed at the beginning. +# It will ask Pi-Apps to install Scrcpy if it's not already installed. +"${DIRECTORY}/manage" install-if-not-installed Scrcpy || exit 1 + +# Install other necessary system packages +sudo apt-get install -y python3-pip git python3-venv + +# 2. Clone the repository and build the app +APP_NAME="yascrcpy" +TEMP_DIR=$(mktemp -d) + +# Clone the source code +git clone --depth 1 "https://github.com/gabreek/qt-yascrcpygui.git" "${TEMP_DIR}" + +# Change into the temp directory +cd "${TEMP_DIR}" + +# Create a virtual environment and install Python packages +python3 -m venv venv +source venv/bin/activate +pip install -r requirements.txt +pip install pyinstaller + +# Build the executable +pyinstaller main.spec +deactivate + +# 3. Install the application files +# Copy the built program to a system-wide location +sudo cp "dist/${APP_NAME}" "/usr/local/bin/${APP_NAME}" + +# Copy the icon +sudo cp "gui/icon.png" "/usr/share/pixmaps/${APP_NAME}.png" + +# Create the Start Menu shortcut +sudo tee "/usr/share/applications/${APP_NAME}.desktop" >/dev/null <