Skip to content

Add permission-gated PowerShell download flow in HTML UI - #2

Open
ReedonMenu wants to merge 1 commit into
mainfrom
codex/create-roblox-game-copier-with-api-key-g4hzdq
Open

Add permission-gated PowerShell download flow in HTML UI#2
ReedonMenu wants to merge 1 commit into
mainfrom
codex/create-roblox-game-copier-with-api-key-g4hzdq

Conversation

@ReedonMenu

Copy link
Copy Markdown
Owner

Motivation

  • Ensure the web UI explicitly requests user consent before downloading a generated PowerShell script for making local backups and centralize file-type validation for safety and clearer UX.

Description

  • Updated index.html to add a COPY AS POWERSHELL (.ps1) button, introduce validateGameFilePath shared validation, prompt the user with confirm before download, and generate a .ps1 script via a Blob URL that copies the specified source into a backups folder next to the script.
  • Added a local CLI module roblox_game_copier.py that provides API-key generation/validation and a copy_game_file implementation for creating timestamped backups of .rbxl/.rbxlx files.
  • Added unit tests in test_roblox_game_copier.py, a small script.js and styles.css for the UI, and README updates describing the web UI and CLI usage.
  • Preserved existing tab navigation and the friend-join helper behavior in the Features panel.

Testing

  • Ran python3 -m unittest -v and both tests test_generate_and_validate_key and test_copy_game_file passed (OK).
  • Ran an automated Playwright browser script that loaded the served index.html, filled a local file path, accepted the permission prompt, clicked the PowerShell download button, and captured a screenshot; the script completed successfully.

Codex Task

@vercel

vercel Bot commented Feb 20, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
game-copier Ready Ready Preview, Comment Feb 20, 2026 1:07pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant