Skip to content

Commit cbb8ffa

Browse files
committed
updated release name and added one-line command
1 parent a257944 commit cbb8ffa

File tree

4 files changed

+24
-2
lines changed

4 files changed

+24
-2
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ jobs:
2828

2929
- name: Package extension
3030
run: vsce package
31+
32+
- name: Rename VSIX file
33+
run: |
34+
VERSION=$(node -p "require('./package.json').version")
35+
mv ps1-dev-extension-$VERSION.vsix ps1-dev-extension.vsix
3136
3237
- name: Get version from tag
3338
id: get_version
@@ -37,7 +42,7 @@ jobs:
3742
id: create_release
3843
uses: softprops/action-gh-release@v1
3944
with:
40-
files: ps1-dev-extension-*.vsix
45+
files: ps1-dev-extension.vsix
4146
name: Release ${{ steps.get_version.outputs.VERSION }}
4247
draft: false
4348
prerelease: false

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ This extension provides tools for developing games and applications for PlayStat
88
- ISO generation for projects
99
- Running projects in the emulator
1010

11+
## Quick Setup (Windows)
12+
13+
Run the following command in PowerShell to install all required dependencies:
14+
15+
```powershell
16+
irm https://raw.githubusercontent.com/alextrevisan/psxdev-code-plugin/master/setup-ps1dev.ps1 | iex
17+
```
18+
1119
## Installation
1220

1321
As this is a local extension, you will need to:

package-extension.ps1

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,16 @@ if (-not $vsceExists) {
1616
Write-Host "Packaging the extension..."
1717
vsce package
1818

19+
# Get version from package.json
20+
$packageJson = Get-Content -Raw -Path "package.json" | ConvertFrom-Json
21+
$version = $packageJson.version
22+
23+
# Rename the VSIX file to remove version
24+
Rename-Item -Path "ps1-dev-extension-$version.vsix" -NewName "ps1-dev-extension.vsix" -Force
25+
1926
Write-Host "Package created successfully!"
2027
Write-Host "To install manually in VS Code, use the command:"
21-
Write-Host "code --install-extension ps1-dev-extension-0.1.0.vsix"
28+
Write-Host "code --install-extension ps1-dev-extension.vsix"
2229
Write-Host ""
2330
Write-Host "NOTE: This package does not include the large tools (GCC, SDK, Emulator)."
2431
Write-Host "They will be downloaded automatically when the extension is installed."

setup-ps1dev.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Set-ExecutionPolicy Bypass -Scope Process
2+
irm "https://community.chocolatey.org/install.ps1" | iex; choco install msys2 -y; C:\tools\msys64\usr\bin\bash.exe -lc "pacman -Syuu --noconfirm; pacman -S --noconfirm make"; [System.Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\tools\msys64\usr\bin", [System.EnvironmentVariableTarget]::Machine); $vcPath = "$env:TEMP\vc_redist.x64.exe"; Invoke-WebRequest -Uri "https://aka.ms/vs/17/release/vc_redist.x64.exe" -OutFile $vcPath; Start-Process -FilePath $vcPath -ArgumentList "/install /quiet /norestart" -Wait

0 commit comments

Comments
 (0)