Welcome!
Please read our Code of Conduct to keep our community approachable and respectable.
To familiarize yourself with the project, please read the README. Here are some resources to help you get started with open-source contributions:
- Finding ways to contribute to open-source on GitHub
- Setting up Git
- GitHub flow
- Collaborating with pull requests
- Tauri essentials
- the
pnpm
CLI
If you come across an issue or have a feature request for OneLauncher, please search if a related issue has already been reported. If no relevant issue exists, you can open a new issue using the appropriate issue form.
To find an issue that interests you, you can browse through our existing issues and use the available labels
to narrow down your search (See Labels for more information). As a general rule, if you find an issue you want to work on, you are welcome to open a PR with a fix.
This project uses Cargo
and pnpm
. Make ensure you have them installed before proceeding.
To make changes locally, follow these steps:
- Clone the repository:
git clone https://github.com/polyfrost/onelauncher
- Navigate to the project directory:
cd onelauncher
- Configure your system environment for OneLauncher development:
- For Linux users, run:
./packages/scripts/setup.sh
The Unix script will check if Rust and pnpm are installed then proceed to install Clang, NASM, LLVM, libvips, Tauri essentials and any other required dependencies for OneLauncher to build.
- For macOS users, run:
./packages/scripts/setup.sh
The Unix script will check if Rust, pnpm and Xcode are installed and proceed to use Homebrew to install NASM, Tauri essentials and install any other required dependencies for OneLauncher to build.
- For Windows users, run in PowerShell:
.\packages\scripts\setup.ps1
The Unix script will install pnpm, LLVM, C++ build tools, NASM, Rust + Cargo, Rust tools, Edge Webview 2, Tauri essentials and any other required dependencies for OneLauncher to build.
- For Linux users, run:
- Install dependencies:
pnpm i
- Prepare your cargo installation:
pnpm prep
To quickly run only the desktop app after prep
, you can use:
-
pnpm desktop dev
If necessary, the webview devtools can be opened by pressing
Ctrl + Shift + I
(Linux and Windows) orCommand + Option + I
(macOS) in the desktop app.
If you encounter any issues, ensure that you are using the following versions (or later) of Rust, Node and Pnpm:
rustc
version: 1.80node
version: 20.15pnpm
version: 9.6.0
After cleaning out your build artifacts using pnpm clean
, git clean
, or cargo clean
, it is necessary to re-run the setup
script.
After you finish making your changes and committed them to your branch, make sure to execute pnpm format
to fix any style inconsistency in your code.
Once you have finished making your changes, create a pull request (PR) to submit them.
- Fill out the template to help reviewers understand your changes and the purpose of your PR.
- If you are addressing an existing issue, don't forget to link your PR to the issue.
- Enable the checkbox to allow maintainer edits so that the branch can be updated for merging.
- Once you submit your PR, a team member will review your proposal. They may ask questions or request additional information.
- You may be asked to make changes before the PR can be merged, either through suggested changes or pull request comments. You can apply suggested changes directly through the UI. For other changes, you can make them in your fork and commit them to your branch.
- As you update your PR and apply changes, mark each conversation as resolved.
- If you run into any merge issues, refer to this git tutorial to help you resolve merge conflicts and other issues.
Congratulations! 🎉🎉 Polyfrost thanks you for your contribution! ✨ Once your PR is merged, your changes will be included in the next release.
This error occurs when Xcode is not installed or when the Xcode command line tools are not in your PATH
.
Run xcode-select --install
in the terminal to install the command line tools. If they are already installed, ensure that you update macOS to the latest version available.
If that doesn't work, ensure that macOS is fully updated, and that you have Xcode installed (via the app store).
Also ensure that Rosetta is installed, as a few of our dependencies require it. You can install Rosetta with softwareupdate --install-rosetta --agree-to-license
.
Check out the i18n README for more information on how to contribute to translations.
This CONTRIBUTING.md file was inspired by the github/docs
CONTRIBUTING.md file, and we extend our gratitude to the original authors.