Skip to content

Latest commit

 

History

History
124 lines (85 loc) · 7.06 KB

CONTRIBUTING.md

File metadata and controls

124 lines (85 loc) · 7.06 KB

Contributing to OneLauncher

Welcome!

Please read our Code of Conduct to keep our community approachable and respectable.

New Contributor Guide

To familiarize yourself with the project, please read the README. Here are some resources to help you get started with open-source contributions:

Getting Started

Issues

Creating a New Issue

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.

Solving an Issue

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.

Making Changes

Making Changes Locally

This project uses Cargo and pnpm. Make ensure you have them installed before proceeding.

To make changes locally, follow these steps:

  1. Clone the repository: git clone https://github.com/polyfrost/onelauncher
  2. Navigate to the project directory: cd onelauncher
  3. Configure your system environment for OneLauncher development:
    1. 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.

    2. 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.

    3. 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.

  4. Install dependencies: pnpm i
  5. 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) or Command + 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.80
  • node version: 20.15
  • pnpm 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.

Pull Request

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.

Your PR is Merged!

Congratulations! 🎉🎉 Polyfrost thanks you for your contribution! ✨ Once your PR is merged, your changes will be included in the next release.

Common Errors

macOS errors with XCode tools & Rosetta

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.

Translations

Check out the i18n README for more information on how to contribute to translations.

Credits

This CONTRIBUTING.md file was inspired by the github/docs CONTRIBUTING.md file, and we extend our gratitude to the original authors.