Install
Pasc is a standalone executable application and it is simple to install.
Manual installation
From the releases page download a "pasc-...zip" file according to your platform. Extract its contents and run the following command:
./pasc install
Pasc will install itself on user's home folder creating a subfolder named .pasc and adding it to the path to make pasc visible when using the terminal app. It may be necessary to restart the terminal app for the changes take effect. Type pasc from the terminal app to check if it is working.
Build it from the sources
You may clone the repo and build it. Open a terminal and choose a folder to clone the repo and type the following commands:
git clone https://github.com/leandro-lprsoft/pasc.git
cd pasc
Now you need to install project dependencies. If you have boss installed use the following command:
boss update
If you don't have boss installed you need to download them manually using the following commands:
mkdir modules
cd modules
git clone https://github.com/leandro-lprsoft/pascli.git
Now you can build it from the project folder:
lazbuild pasc.lpi --build-mode=release
./pasc install
- Note
- You may need to run the command with elevation of privilege for MacOS or Linux.
Pasc may not be accessible after install on Linux, you may need to run the following command:
source ˜/.profile
Close and open your terminal to the command take effect.
Test pasc
To see if pasc is working type the following:
pasc help new
You should see an output like this:
pasc version 1.0.6 Usage: pasc new <project file name> Creates a new free pascal program. From the current path create a subfolder with the given project name, initialize git, initialize the boss dependency manager, create build and debug support files for use with vscode and create a project based on a simple free pascal template. Ex: pasc new <project name>
Next Quick start |
---|
Generated by PasDoc 0.16.0.