mirror of
https://codeberg.org/librewolf/source.git
synced 2024-12-22 13:43:04 -05:00
Add bash
syntax highlighting for README.md
This commit is contained in:
parent
b5e62c877c
commit
1b26e73d2e
1 changed files with 14 additions and 14 deletions
28
README.md
28
README.md
|
@ -67,21 +67,21 @@ There are two ways to build LibreWolf. You can either use the source tarball or
|
||||||
|
|
||||||
First, let's **[download the latest tarball](https://gitlab.com/librewolf-community/browser/source/-/releases)**. This tarball is the latest produced by the [CI](https://gitlab.com/librewolf-community/browser/source/-/jobs). You can also check the sha256sum of the tarball there.
|
First, let's **[download the latest tarball](https://gitlab.com/librewolf-community/browser/source/-/releases)**. This tarball is the latest produced by the [CI](https://gitlab.com/librewolf-community/browser/source/-/jobs). You can also check the sha256sum of the tarball there.
|
||||||
|
|
||||||
```
|
```bash
|
||||||
tar xf <tarball>
|
tar xf <tarball>
|
||||||
cd <folder>
|
cd <folder>
|
||||||
```
|
```
|
||||||
|
|
||||||
Then, you have to bootstrap your system to be able to build LibreWolf. You only have to do this one time. It is done by running the following commands:
|
Then, you have to bootstrap your system to be able to build LibreWolf. You only have to do this one time. It is done by running the following commands:
|
||||||
|
|
||||||
```
|
```bash
|
||||||
./mach --no-interactive bootstrap --application-choice=browser
|
./mach --no-interactive bootstrap --application-choice=browser
|
||||||
./lw/setup-wasi-linux.sh
|
./lw/setup-wasi-linux.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
Finally you can build LibreWolf and then package or run it with the following commands:
|
Finally you can build LibreWolf and then package or run it with the following commands:
|
||||||
|
|
||||||
```
|
```bash
|
||||||
./mach build
|
./mach build
|
||||||
./mach package
|
./mach package
|
||||||
# OR
|
# OR
|
||||||
|
@ -92,26 +92,26 @@ Finally you can build LibreWolf and then package or run it with the following co
|
||||||
|
|
||||||
First, clone this repository with Git:
|
First, clone this repository with Git:
|
||||||
|
|
||||||
```
|
```bash
|
||||||
git clone --recursive https://gitlab.com/librewolf-community/browser/source.git librewolf-source
|
git clone --recursive https://gitlab.com/librewolf-community/browser/source.git librewolf-source
|
||||||
cd librewolf-source
|
cd librewolf-source
|
||||||
```
|
```
|
||||||
|
|
||||||
Next, build the LibreWolf source code with the following command:
|
Next, build the LibreWolf source code with the following command:
|
||||||
|
|
||||||
```
|
```bash
|
||||||
make dir
|
make dir
|
||||||
```
|
```
|
||||||
|
|
||||||
After that, you have to bootstrap your system to be able to build LibreWolf. You only have to do this one time. It is done by running the following command:
|
After that, you have to bootstrap your system to be able to build LibreWolf. You only have to do this one time. It is done by running the following command:
|
||||||
|
|
||||||
```
|
```bash
|
||||||
make bootstrap
|
make bootstrap
|
||||||
```
|
```
|
||||||
|
|
||||||
Finally you can build LibreWolf and then package or run it with the following commands:
|
Finally you can build LibreWolf and then package or run it with the following commands:
|
||||||
|
|
||||||
```
|
```bash
|
||||||
make build
|
make build
|
||||||
make package
|
make package
|
||||||
# OR
|
# OR
|
||||||
|
@ -123,7 +123,7 @@ make run
|
||||||
### How to make a patch
|
### How to make a patch
|
||||||
|
|
||||||
The easiest way to make patches is to go to the LibreWolf source folder:
|
The easiest way to make patches is to go to the LibreWolf source folder:
|
||||||
```
|
```bash
|
||||||
cd librewolf-$(cat version)
|
cd librewolf-$(cat version)
|
||||||
git init
|
git init
|
||||||
git add <path_to_file_you_changed>
|
git add <path_to_file_you_changed>
|
||||||
|
@ -135,12 +135,12 @@ We have Gitter / Matrix rooms, and on the website we have links to the various i
|
||||||
### How to work on an existing patch
|
### How to work on an existing patch
|
||||||
|
|
||||||
The easiest way to make patches is to go to the LibreWolf source folder:
|
The easiest way to make patches is to go to the LibreWolf source folder:
|
||||||
```
|
```bash
|
||||||
make fetch # get the firefox tarball
|
make fetch # get the firefox tarball
|
||||||
./scripts/git-patchtree.sh patches/sed-patches/disable-pocket.patch
|
./scripts/git-patchtree.sh patches/sed-patches/disable-pocket.patch
|
||||||
```
|
```
|
||||||
Now change the source tree the way you want, keeping in mind to `git add` new files. When done, you can create the new patch with:
|
Now change the source tree the way you want, keeping in mind to `git add` new files. When done, you can create the new patch with:
|
||||||
```
|
```bash
|
||||||
cd firefox-<version>
|
cd firefox-<version>
|
||||||
git diff 4b825dc642cb6eb9a060e54bf8d69288fbee4904 HEAD > ../my-patch-name.patch
|
git diff 4b825dc642cb6eb9a060e54bf8d69288fbee4904 HEAD > ../my-patch-name.patch
|
||||||
```
|
```
|
||||||
|
@ -158,7 +158,7 @@ Well, first of all:
|
||||||
Now that you have a patch in LibreWolf, that's not enough to upload to Mozilla. See, Mozilla only accepts patches against Nightly. So here is how to do that:
|
Now that you have a patch in LibreWolf, that's not enough to upload to Mozilla. See, Mozilla only accepts patches against Nightly. So here is how to do that:
|
||||||
|
|
||||||
If you have not done already, create the `mozilla-unified` folder and build Firefox with it:
|
If you have not done already, create the `mozilla-unified` folder and build Firefox with it:
|
||||||
```
|
```bash
|
||||||
hg clone https://hg.mozilla.org/mozilla-unified
|
hg clone https://hg.mozilla.org/mozilla-unified
|
||||||
cd mozilla-unified
|
cd mozilla-unified
|
||||||
hg update
|
hg update
|
||||||
|
@ -167,17 +167,17 @@ MOZBUILD_STATE_PATH=$HOME/.mozbuild ./mach --no-interactive bootstrap --applicat
|
||||||
./mach run
|
./mach run
|
||||||
```
|
```
|
||||||
If you skipped the previous step, you could ensure that you're up to date with:
|
If you skipped the previous step, you could ensure that you're up to date with:
|
||||||
```
|
```bash
|
||||||
cd mozilla-unified
|
cd mozilla-unified
|
||||||
hg pull
|
hg pull
|
||||||
hg update
|
hg update
|
||||||
```
|
```
|
||||||
Now you can apply your patch to Nightly:
|
Now you can apply your patch to Nightly:
|
||||||
```
|
```bash
|
||||||
patch -p1 -i ../mypatch.patch
|
patch -p1 -i ../mypatch.patch
|
||||||
```
|
```
|
||||||
Now you let Mercurial create the patch:
|
Now you let Mercurial create the patch:
|
||||||
```
|
```bash
|
||||||
hg diff > ../my-nightly-patch.patch
|
hg diff > ../my-nightly-patch.patch
|
||||||
```
|
```
|
||||||
And it can be uploaded to Bugzilla.
|
And it can be uploaded to Bugzilla.
|
||||||
|
|
Loading…
Reference in a new issue