gitbutler/README.md

74 lines
1.9 KiB
Markdown
Raw Normal View History

## Development
2023-02-03 18:23:13 +03:00
### Prerequisites
2023-01-31 17:55:57 +03:00
2023-01-31 18:01:58 +03:00
[see here](https://tauri.app/v1/guides/getting-started/prerequisites)
2023-02-03 18:23:13 +03:00
for the list of software required to build / develope the app.
### Setup
2023-01-31 17:55:57 +03:00
Then, make sure to install app dependencies:
2023-01-31 17:55:57 +03:00
2023-01-31 18:01:58 +03:00
```bash
$ pnpm install
```
2023-01-31 17:55:57 +03:00
### Run
2023-02-03 18:23:13 +03:00
Now you should be able to run the app in development mode:
2023-01-31 18:01:58 +03:00
```bash
$ pnpm tauri dev
```
2023-02-03 12:36:51 +03:00
2023-05-09 10:50:42 +03:00
### Running Stories
2023-04-18 13:54:38 +03:00
2023-05-09 10:50:42 +03:00
Stories is our easy way to view our app components. Running the following command will launch in your default browser.
2023-04-18 13:54:38 +03:00
```bash
2023-05-09 10:50:42 +03:00
$ pnpm story:dev
2023-04-18 13:54:38 +03:00
```
### Linting
Pull requests will not pass unless files are linted for proper Tailwind formatting.
```bash
$ pnpm format
```
2023-02-03 18:23:13 +03:00
## building
To build the app in production mode, run:
2023-02-03 18:23:13 +03:00
```bash
$ pnpm tauri build
```
## Icon generation
2023-04-13 14:39:03 +03:00
```bash
$ pnpm tauri icon path/to/icon.png
```
## Releasing
2023-02-03 12:36:51 +03:00
2023-02-17 16:21:41 +03:00
Building is done via [GitHub Action](https://github.com/gitbutlerapp/gitbutler-client/actions/workflows/publish.yaml).
2023-02-14 17:59:48 +03:00
Go to the link and select `Run workflow` from the desired branch.
### Versioning
2023-02-14 17:59:48 +03:00
When running the [release action](https://github.com/gitbutlerapp/gitbutler-client/actions/workflows/publish.yaml), you will have to choose one of `major`, `minor`, or `patch` release type. Action will generate a new version based on your input and current version found at `https://app.gitbutler.com/releases`.
2023-02-17 16:21:41 +03:00
### publishing
To publish a version that you've just build, use [Release Manager](https://gitbutler.retool.com/apps/cb9cbed6-ae0a-11ed-918c-736c4335d3af/Release%20Manager).
2023-02-03 12:36:51 +03:00
### runners
Note that to build an arm64 macos app, you need to make sure that there is at least one self-hosted runner
with `macos-aarch64` label is online [here](https://github.com/gitbutlerapp/gitbutler-client-tauri/settings/actions/runners).
If you are a lucky owner of an arm64 macos machine, feel free to [run it yourself](https://github.com/gitbutlerapp/gitbutler-client-tauri/settings/actions/runners/new).
Make sure to label it with `macos-aarch64`.