Game Launcher - Documentation
  • Documentation
  • Changelog
  • 🎛️Features comparison
  • Getting-started
    • ❓How it works
    • 🌀Introduction
    • 👉Installation
      • [TIP] Make your host files visible
  • Game Launcher
    • ☁️Cloud Management
    • ⬜Patch Manager App
      • CLI Commands
    • ✳️Enterprise Edition | Multi-games
      • How it works
      • Adding games
  • 🖼️Launcher Integrations
    • 🌌Flat Window Template
      • Deploy for MacOS
        • Create a self-signed certificate
      • 📽️Set a background video
    • 🙎Login & Register Integration
    • 📩Notifications Integration
    • 👾Crypto & NFT Game Launcher
  • 📃Creating Launcher Version
    • 1️⃣1. Deploy your Launcher
    • 2️⃣2. Move your Launcher
    • 3️⃣3. Create your patch
    • 4️⃣4. Upload your files to your server
    • 🥳Testing and Deploying to your users
  • 📔Creating App Version
    • 1️⃣1 & 2. Build your App
    • 3️⃣3. Create your patch
    • 4️⃣4. Upload your files to your server
  • ❕How to show News and Alerts
    • 📰Show your News or Changelog
    • ⚠️Show an Alert
  • Publishing Essentials
    • Hosting
    • App Signing
  • Utilities
    • Launch Arguments
  • 🎨Customization
    • 🆒Set your own Logo
    • 🖼️Set your own Background color
    • 🪟Change Window Transparency
    • 🔤Change Launcher Executable Name
    • 🌀Set an Application Icon
    • 🅰️Customize News Fonts
    • 🌌Set a Splash Screen
  • ⚒️Extending the Launcher
    • 🇺🇸Adding a new language
    • ↪️Using other UI Template
  • 💵Make money with us
    • Creating your template and selling it
Powered by GitBook
On this page
  • How to use
  • Script for Create Patch and Upload to Host
  • CLI Commands Documentation
  • Initialization
  • General Commands
  • Project Settings Commands
  1. Game Launcher
  2. Patch Manager App

CLI Commands

PreviousPatch Manager AppNextEnterprise Edition | Multi-games

Last updated 2 months ago

Required programs

  • to perform CLI commands

  • for file uploading through CLI

How to use

  1. In your terminal navigate where the PatchManager is located.

  2. Run the program using PatchManager.exe -i

  3. Perform your commands.

Script for Create Patch and Upload to Host

This script will create the patch and then it will upload your App to your host automatically. Just put your game in the App folder.

CreateAppPatch.bat
@echo off
REM ====================================================
REM © Game Launcher - Create Patch and Upload to Host
REM ====================================================

REM ====================================================
REM Configuration
REM ====================================================
set "FTP_HOST=ftp.example.com"
set "FTP_USER=your_username"
set "FTP_PASS=your_password"

set "HOST_URL=https://game-launcher.net/GameLauncher/"
set "ENVIRONMENT=Release" REM Release or Beta
set "REMOTE_PATH=/public_html/GameLauncher/App/%ENVIRONMENT%"

REM ====================================================
REM Create the patch with PatchManager and then close it
REM ====================================================
(
  echo --app-workspace
  echo --url=%HOST_URL%
  echo -c
  echo --exit
) | PatchManager.exe -i

REM ====================================================
REM Upload files using WinSCP via a temporary script
REM ====================================================
(
  echo open ftp://%FTP_USER%:%FTP_PASS%@%FTP_HOST%/
  echo lcd "%CD%\App Workspace\%ENVIRONMENT%\Output"
  echo cd %REMOTE_PATH%
  echo put *
  echo exit
) > winscp_script.txt

REM Execute WinSCP with the temporary script file using the full path
"C:\Program Files (x86)\WinSCP\winscp.com" /script=winscp_script.txt

REM Delete the temporary WinSCP script file
del winscp_script.txt

echo Process completed. Patch created and files uploaded.
pause

CLI Commands Documentation

Initialization

-i, --init

Description: Initialize the CLI.

General Commands

-v, --version

Description: Display the patch manager version.

-c, --create

Description: Create a new patch.

-s, --switch-workspace

Description: Switch between Launcher and App workspace.

--app-workspace

Description: Changes to the App workspace.

--launcher-workspace

Description: Changes to the Launcher workspace.

-e, --switch-environment

Description: Switch between environments. (Release/Beta)

--release

Description: Changes to the Release Environment.

--beta

Description: Changes to the Beta Environment.d

--cleanworkspace

Description: Clean the workspace. Deletes ALL THE FOLDERS from the current workspace.

-r, --refresh

Description: Refresh the workspace. (Useful for seeing any new files or changes).

--settings

Description: Show current project info settings.

Project Settings Commands

--name <ProjectName>

Description: Set the project name.

--url <BaseDownloadURL>

Description: Set the base download URL.

--setrepair <true|false>

Description: Enable or disable repair patch creation.

--setincremental <true|false>

Description: Enable or disable incremental patch creation.

--setinstaller <true|false>

Description: Enable or disable installer patch creation.

--setbinarydiff <QualityLevel>

Description: Set the binary diff quality (1 to 5).

--addignore <Path>

Description: Add a path to ignored paths.

--removeignore <Path>

Description: Remove a path from ignored paths.

-o, --open

Description: Open the current workspace folder.

--no-update

Description: Do not check for updates at start.

--exit

Description: Exit the CLI.

⬜
GitBash
WinSCP
PatchManager ready to execute commands