Skip to content

Commit

Permalink
fix: start.ps1 causes more problems than it solves
Browse files Browse the repository at this point in the history
  • Loading branch information
builder555 committed Jan 27, 2024
1 parent 3c51fb9 commit 8cff8b1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 34 deletions.
8 changes: 3 additions & 5 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,9 @@ Why focus on soldering when you can play with the settings instead? With this ap

4. **Windows**:
* right click on the zip, properties> general, check box to Unblock, then extract ([reference](https://github.com/builder555/PineSAM/discussions/106#discussion-4960445)).
* Run [powershell](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.3) as admin, cd to the pinesam folder and `.\start.ps1`
* Allow any windows pop-up warnings about "serve.exe" and "main_sever.exe".
* If you get errors in powershell, set the permissions to RemoteSigned to allow scripts ([reference](https://lazyadmin.nl/powershell/running-scripts-is-disabled-on-this-system/)).
* ```C:\> Set-ExecutionPolicy RemoteSigned```
* Browser will automatically open http://localhost:8080
* Run `Pinesam.exe`
* Approve any pop-up warnings.
* Open http://localhost:8080 in your normal browser (the page will not open automatically).
* Usage guide [here](https://builder555.github.io/PineSAM/user-guide/usage/).

## II. Build the Dev version (Source-all-_.zip)
Expand Down
3 changes: 0 additions & 3 deletions ci/package.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,5 @@ Push-Location dist
Compress-Archive -Path Pinecil.exe -DestinationPath $zip_path -Force
Pop-Location

Compress-Archive -Update ci/start.ps1 $zip_path
Compress-Archive -Update version.txt $zip_path

Write-Output "asset_path=$zip_path" >> $Env:GITHUB_OUTPUT
Write-Output "asset_name=${name}.zip" >> $Env:GITHUB_OUTPUT
10 changes: 0 additions & 10 deletions ci/start.ps1

This file was deleted.

19 changes: 3 additions & 16 deletions docs/install-guide/easy-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,26 +24,13 @@ Just download the latest [release](https://github.com/builder555/PineSAM/release

* Download the zip for Windows from [here](https://github.com/builder555/PineSAM/releases/latest).
* Right-click the zip > properties, if it has an Unblock option, then unblock and extract the zip ([reference](https://github.com/builder555/PineSAM/discussions/106#discussion-4960445)).
* Inside powershell, change to the directory where the files were extracted.
* Run `Pinesam.exe`.

``` console title="Run powershell, path may differ from example"
C:\> cd .\Downloads\PineSAM\
C:\> .\start.ps1
```

* Accept any pop-up warnings about "serve.exe" and "main_sever.exe" ([reference](https://github.com/builder555/PineSAM/discussions/106#discussion-4960445)).
* Accept any pop-up warnings ([reference](https://github.com/builder555/PineSAM/discussions/106#discussion-4960445)).

* Your default browser will automatically open http://localhost:8080
* Open http://localhost:8080 in your normal browser (the page will not open automatically).
* To run from a phone [see :material-cellphone-nfc:](../index.md#remote-access)
* User [guide here](../user-guide/usage.md).
<br>

* If there are errors, run [Powershell](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.3) as administrator.

* Then use this command to set permissions to `RemoteSigned` to allow pwsh to execute scripts ([reference](https://lazyadmin.nl/powershell/running-scripts-is-disabled-on-this-system/)).

``` console
C:\> Set-ExecutionPolicy RemoteSigned
```

* See [Troubleshooting](troubleshooting.md) for help.

0 comments on commit 8cff8b1

Please sign in to comment.