Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[README] Add quick launch tip #54

Open
EDM115 opened this issue Oct 24, 2023 · 1 comment
Open

[README] Add quick launch tip #54

EDM115 opened this issue Oct 24, 2023 · 1 comment

Comments

@EDM115
Copy link

EDM115 commented Oct 24, 2023

People can set an alias to the start command and get it running easily

Example made for PowerShell :

  1. Enter notepad $PROFILE
    if this prompts an error, run New-Item -Path $PROFILE -Type File -Force before
  2. Add the following to the bottom of this file :
    function Invoke-ARRPC {
        Start-Job -ScriptBlock {
            Set-Location -Path "D:\EDM115\Programmes\Discord RPC\arrpc"
            node src
        } -Name "arrpc"
    }
    
    Set-Alias -Name arrpc -Value Invoke-ARRPC
    make sure to change the path to arrpc with the actual path on your computer, and do npm install on the folder if you run it for the first time
  3. Save the file, exit the notepad and run . $PROFILE

How to use :

  • Start : arrpc
  • See the output : Receive-Job -Name "arrpc"
  • Stop : Stop-Job -Name "arrpc"

How it plays :
image

@masiv1001
Copy link

This is being discussed in the 51st pull request. tldr: the concept revolves around incorporating arRPC as a system service on both on Linux and Windows systems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants