@@ -63,34 +63,42 @@ For developer tools, run this one instead (it includes requirements.txt):
6363pip install -r requirements.dev.txt
6464```
6565
66- ## Setup on Linux
66+ ## Setup
6767
68- ### Build, test and install using Flatpak
68+ ### Setup on Linux using Flatpak
6969
70- To install Diffuse locally:
70+ #### Build, test and install
71+
72+ To build, test and install Diffuse locally:
7173
7274``` sh
7375flatpak install runtime/org.gnome.Sdk/$( uname -p) /42
7476flatpak-builder --user --install build-flatpak io.github.mightycreak.Diffuse.yml
7577```
7678
79+ #### Run
80+
7781To run Diffuse through Flatpak:
7882
7983``` sh
8084flatpak run io.github.mightycreak.Diffuse
8185```
8286
87+ #### Uninstall
88+
8389To uninstall Diffuse:
8490
8591``` sh
8692flatpak remove io.github.mightycreak.Diffuse
8793```
8894
89- ## Build, test and install using Meson on Linux and Mac OS
95+ ### Setup on Linux using Meson
9096
91- Diffuse build system is meson.
97+ #### Build and test
9298
93- To compile and test Diffuse:
99+ Diffuse is using Meson as its build system.
100+
101+ To build and test Diffuse:
94102
95103``` sh
96104meson setup build
@@ -99,55 +107,81 @@ meson compile
99107meson test
100108```
101109
110+ #### Install on system and run
111+
102112To install Diffuse on your system (e.g. ` /usr/local/ ` ):
103113
104114``` sh
105115meson install # requires admin privileges
116+ ```
117+
118+ To run Diffuse:
106119
107- # Run Diffuse
120+ ``` sh
108121diffuse
109122```
110123
111- To install Diffuse on a custom directory (e.g. ` ~/bin/diffuse ` ):
124+ #### Install in a custom directory and run
125+
126+ Meson allows to change the default installation directories, see
127+ [ command-line documentation] ( https://mesonbuild.com/Commands.html#configure ) .
128+
129+ To install Diffuse in a custom directory (e.g. ` ~/bin/diffuse ` ):
112130
113131``` sh
114132meson install --destdir ~ /bin/diffuse
133+ ```
134+
135+ To run Diffuse:
115136
116- # Run Diffuse
137+ ``` sh
138+ export PYTHONPATH=$HOME /bin/diffuse/usr/local/share/diffuse
117139cd ~ /bin/diffuse/usr/local/bin
118- PYTHONPATH= $HOME /bin/diffuse/usr/local/share/diffuse ./diffuse
140+ ./diffuse
119141```
120142
121- To uninstall diffuse afterwards:
143+ #### Uninstall
144+
145+ To uninstall Diffuse afterwards:
122146
123147``` sh
124148sudo ninja uninstall -C build
125149sudo rm -v /usr/local/share/locale/* /LC_MESSAGES/diffuse.mo
126150```
127151
128- Meson allows to change the default installation directories, see
129- [ command-line documentation] ( https://mesonbuild.com/Commands.html#configure ) .
152+ ### Setup on Mac OS
130153
131- ## Setup on Mac OS
154+ #### Build and test
132155
133- Building on Mac OS is similar to building on Linux. To recap, these are
134- the steps needed to build and install Diffuse manually:
156+ Diffuse is using Meson as its build system.
135157
136- ``` brew install meson python3 py3cairo pygobject3 gtk+3 librsvg
137- meson setup build
138- cd build
139- meson compile
140- meson test
141- meson install
158+ To build and test Diffuse:
159+
160+ ``` sh
161+ meson setup build
162+ cd build
163+ meson compile
164+ meson test
142165```
143166
144- After ` meson install ` , the ` diffuse ` command can be used to launch Diffuse
145- as a native Mac app that is installed into ` /Applications/Diffuse.app ` .
167+ #### Install on system and run
168+
169+ To install Diffuse on your system (e.g. ` /usr/local/ ` ):
170+
171+ ``` sh
172+ meson install # requires admin privileges
173+ ```
174+
175+ To run Diffuse:
176+
177+ ``` sh
178+ diffuse
179+ ```
146180
147- The ` diffuse ` command is compatible with git. To use Diffuse as git's
148- ` git difftool ` run ` git config --global diff.tool diffuse `
181+ _ Note: The ` diffuse ` command can be used to launch Diffuse as a native Mac app _
182+ _ that is installed into ` /Applications/Diffuse.app ` . _
149183
150- ## Setup on Windows
184+ ### Setup on Windows (deprecated)
151185
152186_ Note:_ The Windows port is not maintained and would need some love.
153187Contributions are very welcome! 😉
0 commit comments