| 1 |
# How to build and test Praat on all platforms simultaneously |
| 2 |
|
| 3 |
This page is relevant only if you want to build the complete Praat distribution set, |
| 4 |
i.e. you want to speed up building and testing Praat for all of these editions: |
| 5 |
|
| 6 |
- macOS: one executable for ARM64 and x64 processors together; |
| 7 |
- Windows: separate executables for i686, x64(v1), x64(v3) and ARM64; |
| 8 |
- Ubuntu/Debian/Fedora Linux: separate executables for x64(v3) and ARM64, both with and without GUI; |
| 9 |
- LinuxOne: for the big-endian s390x processor, both with and without GUI; |
| 10 |
- ChromeBook: separate executables for x64(v1) and ARM64; |
| 11 |
- Raspberry Pi: ARMv7a processor. |
| 12 |
|
| 13 |
That’s 14 editions. To be able to understand this page, you should be familiar with the ways |
| 14 |
in which the separate editions are built, as described in [HOW_TO_BUILD_ONE.md](HOW_TO_BUILD_ONE.md). |
| 15 |
|
| 16 |
At the time of writing (20 May 2026), we develop 11 of the 14 Praat editions on a single |
| 17 |
computer, which is a 2023 M3 Macbook Pro: the Mac edition is built natively with Xcode, |
| 18 |
the four Windows editions are built via Parallels Desktop 26, |
| 19 |
and the four Linux (Ubuntu) editions and the two Chromebook editions are built via OrbStack. |
| 20 |
The Raspberry Pi edition is built separately (on a Raspberry Pi), |
| 21 |
and the two s390x editions are built separately on a LinuxONE VM. |
| 22 |
We put all 14 editions into a `bin` folder on Dropbox, so that it is easy to test |
| 23 |
the Windows and Linux editions on other computers. |
| 24 |
|
| 25 |
In the following we assume that you want to create all of those editions as well. |
| 26 |
We hope that our example will be useful to you. |
| 27 |
|
| 28 |
## 1. MacOS development set-up |
| 29 |
|
| 30 |
Your source code folders, such as `fon` and `sys`, |
| 31 |
will reside in a folder like `~/Dropbox/Praats/src`, |
| 32 |
where you also put `praat.xcodeproj`, as described in section 2 of [HOW_TO_BUILD_ONE.md](HOW_TO_BUILD_ONE.md). |
| 33 |
On our 2023 Mac with Xcode 26.4, building Praat with Command-B or Command-R, |
| 34 |
after cleaning the build folder with Shift-Command-K, |
| 35 |
takes only 56 seconds for the ARM64 part and x64 part together (optimization level O3). |
| 36 |
|
| 37 |
## 2. Windows development set-up |
| 38 |
|
| 39 |
On a Windows 10 or Windows 11 computer, you can install MSYS2 or Cygwin, |
| 40 |
and create some `praats` folders, as described in section 1 of [HOW_TO_BUILD_ONE.md](HOW_TO_BUILD_ONE.md). |
| 41 |
|
| 42 |
If you work under Parallels Desktop on an ARM64 Mac, |
| 43 |
you will want MSYS2, because it has an edition for ARM64. |
| 44 |
Your source tree will reside on the Windows disk, |
| 45 |
which can be much faster than building directly on the MacOS disk. |
| 46 |
To move the source from the MacOS disk to the Windows disk, |
| 47 |
you “mount” the MacOS disk from MSYS2 or Cygwin; this is easy: |
| 48 |
in Parallels Desktop, choose `Windows 11 ARM` -> `Configure`, |
| 49 |
then `Options`, then `Sharing`, then `Share Mac`, and set `Share folders` to `Home folder only` |
| 50 |
(if this scares you, then use `Custom Folders` instead). |
| 51 |
Your MacOS home folder (i.e. `/Users/yourname`) is now visible anywhere on Windows |
| 52 |
as the `Z` drive (or so); from any of the three MSYS shells you can access it as `/z`, |
| 53 |
and from the Cygwin terminal you can access it as `/cygdrive/z`. |
| 54 |
|
| 55 |
When developing Praat for Windows, you just edit your files in Xcode; |
| 56 |
do not forget to save them (as you do e.g. by building in Xcode). |
| 57 |
Then, just as you use Command-B and Command-R in Xcode, |
| 58 |
you will be able to type `praat-build` (which only builds) or `praat-run` (which builds and runs) |
| 59 |
into your MSYS2 shell. To accomplish this, |
| 60 |
add the following definitions into `/home/yourname/.bashrc` (i.e. in your MSYS2 Shell home folder), |
| 61 |
so that `bash` will automatically execute them whenever you start your |
| 62 |
MSYS shell or Cygwin terminal (you will need to have installed `rsync` and `make`). |
| 63 |
On our 2023 Mac, the ARM64 edition will be the default, |
| 64 |
but the x64/AMD64 and Intel32 versions will also be available. |
| 65 |
As the same `.bashrc` file is shared among all three editions, |
| 66 |
we use the environment variable `MSYSTEM` to differentiate between the three: |
| 67 |
|
| 68 |
# in MSYS2:~/.bashrc |
| 69 |
ORIGINAL_SOURCES="/z/Dropbox/Praats/src" |
| 70 |
EXCLUDES='--exclude="*.xcodeproj" --exclude="Icon*" --exclude=".*" --exclude="*kanweg*"' |
| 71 |
alias praat-build="( cd $BUILD_FOLDER &&\ |
| 72 |
rsync -rptvz $ORIGINAL_SOURCES/ $EXCLUDES . &&\ |
| 73 |
make -j12 )" |
| 74 |
alias praat="$BUILD_FOLDER/Praat.exe" |
| 75 |
alias praat-run="praat-build && praat" |
| 76 |
|
| 77 |
This also defines `praat` for running Praat without first rebuilding it. |
| 78 |
The cycle from editing Praat on the Mac to running the new version on Windows therefore takes only two steps: |
| 79 |
|
| 80 |
1. edit and save the source code in Xcode on your Mac; |
| 81 |
2. type `praat-run` on your Windows 11 (under Parallels Desktop on your Mac) in one of the three MSYS2 shells. |
| 82 |
|
| 83 |
The set-up of the Praat team is cross-compilation: the same Clang compiler running natively on the ARM64 |
| 84 |
processor of our 2023 Mac creates the object files for all three Windows editions |
| 85 |
(for linking, which is fast anyway, the three separate ARM64/x64/Intel32 linkers are used). |
| 86 |
As a result, building from scratch costs 100 seconds for ARM64, |
| 87 |
and only 110 seconds for x64 (which would be 212 seconds under x64 emulation) |
| 88 |
and 161 seconds for Intel32 (which would be 390 seconds under Intel32 emulation). |
| 89 |
|
| 90 |
## 3. Linux development set-up |
| 91 |
|
| 92 |
On an Ubuntu 20.04 or 22.04 computer, create a folder `praats` in your home folder, |
| 93 |
as described in section 3 of [HOW_TO_BUILD_ONE.md](HOW_TO_BUILD_ONE.md). |
| 94 |
|
| 95 |
If you work under Parallels Desktop (19 or later) on an Intel64 Mac, |
| 96 |
choose `Ubuntu 20.04 or 22.04` -> `Configure`, |
| 97 |
then `Options`, then `Sharing`, then `Share Mac`, and set `Share folders` to `Home folder only` |
| 98 |
(or use `Custom Folders` instead). |
| 99 |
Your MacOS home folder (i.e. `/Users/yourname`) is now visible on the Ubuntu desktop |
| 100 |
as `Home`, and from the `Terminal` you can access it as `/media/psf/Home`. |
| 101 |
|
| 102 |
However, on an ARM64 Mac this procedure with Parallels Desktop works only for the ARM64 edition. |
| 103 |
With OrbStack we can instead create the Intel64/AMD64 edition as well |
| 104 |
(and building the ARM64 edition is also faster). Your Mac home folder is known |
| 105 |
simply as `/Users/yourname` or so. |
| 106 |
|
| 107 |
When developing Praat for Linux, you just edit and save your files in Xcode. |
| 108 |
You will be able to type `praat-build` (which only builds) or `praat-run` (which builds and runs) |
| 109 |
into your `Terminal` after you add the following definitions into |
| 110 |
`/home/yourname/.bash_aliases` in your Ubuntu home folder |
| 111 |
(this will be run automatically by `.bashrc` whenever you start a `Terminal` window, |
| 112 |
assuming that it uses the `bash` shell; please note the subtle but crucial difference |
| 113 |
between `/Users/yourname` and `/home/yourname`): |
| 114 |
|
| 115 |
# in Ubuntu|Debian:/home/yourname/.bash_aliases |
| 116 |
# in Fedora:/home/yourname/.bashrc.d/bash_aliases |
| 117 |
ORIGINAL_SOURCES="/Users/yourname/Dropbox/Praats/src" |
| 118 |
EXCLUDES='--exclude="*.xcodeproj" --exclude="Icon*" --exclude=".*" --exclude="*kanweg*"' |
| 119 |
alias praat-build="( cd ~/praats &&\ |
| 120 |
rsync -rptvz $ORIGINAL_SOURCES/ $EXCLUDES . &&\ |
| 121 |
make -j15 )" |
| 122 |
alias praat="~/praats/praat" |
| 123 |
alias praat-run="praat-build && praat" |
| 124 |
|
| 125 |
In OrbStack, if you don’t have a GUI, try `praat-run --version` instead; |
| 126 |
but note that you can have a GUI by running XQuartz. With XQuartz running, |
| 127 |
you type something like `xhost +192.168.1.99` (if that’s the local IP address of your computer) |
| 128 |
into the XQuartz terminal window (or put `xhost +192.168.1.99` and `exec quartz-wm` into your `.xinitrc` file), |
| 129 |
and type something like `export DISPLAY=192.168.1.99:0` (depending on your local IP address) |
| 130 |
in your OrbStack window (or into your `.bashrc` file), followed by `praat` into your OrbStack window; |
| 131 |
the Praat-for-Linux Objects and Picture windows will then show up on your Mac screen. |
| 132 |
|
| 133 |
On our 2023 Mac, building Praat this way from scratch takes 42 seconds for the ARM64 edition |
| 134 |
and 130 seconds (under emulation) for the Intel64/AMD64 edition (optimization level O3). |
| 135 |
|
| 136 |
To build `praat_barren`, create a folder `praatsb`, and define |
| 137 |
|
| 138 |
# in Ubuntu|Debian:~/.bash_aliases |
| 139 |
# in Fedora:~/.bashrc.d/bash_aliases |
| 140 |
alias praatb-build="( cd ~/praatsb &&\ |
| 141 |
rsync -rptvz $ORIGINAL_SOURCES/ $EXCLUDES . &&\ |
| 142 |
make PRAAT_GRAPHICS=barren PRAAT_AUDIO=none -j15 )" |
| 143 |
alias praatb="~/praatsb/praat_barren" |
| 144 |
alias praatb-run="praatb-build && praatb" |
| 145 |
|
| 146 |
You test `praat_barren` briefly by typing |
| 147 |
|
| 148 |
# on Ubuntu|Fedora|Debian command line |
| 149 |
praatb --version |
| 150 |
|
| 151 |
To build Praat for Chrome64 (64-bit Intel Chromebooks only), |
| 152 |
create a folder `praatc`, and define |
| 153 |
|
| 154 |
# in Ubuntu|Debian:~/.bash_aliases |
| 155 |
# in Fedora:~/.bashrc.d/bash_aliases |
| 156 |
alias praatc-build="( cd ~/praatsc &&\ |
| 157 |
rsync -rptvz $ORIGINAL_SOURCES/ EXCLUDES . &&\ |
| 158 |
make -j15 )" |
| 159 |
alias praatc="~/praatsc/praat" |
| 160 |
alias praatc-run="praatc-build && praat" |
| 161 |
|
| 162 |
To test Praat for Chrome64, you can just run it on Ubuntu by typing `praatc`, |
| 163 |
or you transfer it to a Chromebook for the real test. |
| 164 |
|
| 165 |
## 4. Chromebook development set-up |
| 166 |
|
| 167 |
Parallels Desktop 19 has no emulator for Chrome, so the choice is between |
| 168 |
building Praat on a Chromebook directly or building Praat on Ubuntu 20.04 or 22.04. |
| 169 |
On a 2019 HP Chromebook with Intel processor, building Praat takes |
| 170 |
a forbidding 27 minutes. |
| 171 |
|
| 172 |
So we choose to build Praat on Ubuntu (under Parallels Desktop on an Intel64 Mac), |
| 173 |
because building the Intel Chrome64 edition on OrbStack Ubuntu 20.04 takes only |
| 174 |
63 seconds (ARM64) or 215 seconds (Intel64/AMD64). If you have the Linux set-up described in 4.3, |
| 175 |
you can do this with the `praatc-build` command. |
| 176 |
|
| 177 |
Next, you need a way to get the executable `praat` from Mac/Ubuntu to your Chromebook. |
| 178 |
The distributors of Praat do this via an intermediary university computer; |
| 179 |
let’s call this computer-in-the-middle `fon.hum.uva.nl` |
| 180 |
(not coincidentally, that’s the name of one of the computers that host the Praat website). |
| 181 |
If you have an account on that computer (say it’s called `yourname`), |
| 182 |
then you can access that account with `ssh`, and it is best to do that without |
| 183 |
typing your password each time. To accomplish this, type |
| 184 |
|
| 185 |
# on Ubuntu command line |
| 186 |
ssh-keygen |
| 187 |
|
| 188 |
on your Ubuntu. This gives you a file `~/.ssh/id_rsa.pub` on your Ubuntu, |
| 189 |
which contains your public `ssh` key. You should append the contents of this `id_rsa.pub` |
| 190 |
to the file `~/.ssh/authorized_keys` on your intermediary computer. From that moment on, |
| 191 |
your intermediary computer will accept `rsync -e ssh` calls from your Ubuntu. |
| 192 |
On the intermediary computer, create a folder `~/builds`, and a folder `chrome64` inside that. |
| 193 |
If you now define |
| 194 |
|
| 195 |
# in Ubuntu:~/.bash_aliases |
| 196 |
praatc-put="rsync -tpvz ~/praatsc/praat [email protected]:~/builds/chrome64" |
| 197 |
praatc-mid="praatc-build && praatc-put" |
| 198 |
|
| 199 |
you can build and send Praat for Chrome to the intermediary computer by just typing |
| 200 |
|
| 201 |
# on Ubuntu command line |
| 202 |
praatc-mid |
| 203 |
|
| 204 |
On your Chromebook, start up Linux (see the Chromebook download page for details), |
| 205 |
create a directory `~/praats` there, and define the following: |
| 206 |
|
| 207 |
# in Chromebook:~/.bash_aliases |
| 208 |
alias praat-get="( cd ~/praats &&\ |
| 209 |
rsync -tpvz [email protected]:~/builds/chrome64/praat . )" |
| 210 |
alias praat="~/praats/praat" |
| 211 |
alias praat-run="praat-get && praat" |
| 212 |
|
| 213 |
From then on, you can use |
| 214 |
|
| 215 |
# on Chromebook command line |
| 216 |
praat-run |
| 217 |
|
| 218 |
to fetch Praat from the intermediary computer and run it. |
| 219 |
|
| 220 |
The cycle from editing Praat on the Mac to running it on your Chromebook therefore takes only three steps: |
| 221 |
|
| 222 |
1. edit and save the source code in Xcode on your Mac; |
| 223 |
2. type `praatc-mid` on your Ubuntu (under Parallels Desktop on your Mac); |
| 224 |
3. type `praat-run` on your Chromebook. |
| 225 |
|
| 226 |
For edits in a `cpp` file (no changes in header files), this whole cycle can be performed within 15 seconds. |
| 227 |
|
| 228 |
## 5. Raspberry Pi development set-up |
| 229 |
|
| 230 |
One could perhaps create the Raspberry Pi edition by cross-compiling on Ubuntu 20.04 or 22.04. |
| 231 |
If any reader of these lines has precise instructions, we would like to know about it |
| 232 |
(the main problem is how to install the GTK etc libraries in the Raspberry Pi toolchain, |
| 233 |
or how to get `dpkg` under Ubuntu-buster to actually find `armhf` libraries). |
| 234 |
|
| 235 |
Till then, you build on the Raspberry Pi itself. Your could do that via an intermediary computer |
| 236 |
(analogously to what we described above for Chromebook), but you can also do it directly |
| 237 |
if you include your Raspberry Pi in the same local network as your Mac and switch on SSH |
| 238 |
on your Raspberry Pi (via Raspberry -> `Preferences` -> `Raspberry Pi Configuration` |
| 239 |
-> `Interfaces` -> `SSH` -> `Enable`. You add your Mac’s public SSH key to your Raspberry Pi with |
| 240 |
|
| 241 |
# on Mac command line |
| 242 |
ssh-keygen # only if you have no SSH key yet |
| 243 |
ssh-copy-id [email protected] # or whatever your Pi’s static IP address is |
| 244 |
|
| 245 |
On your Raspberry Pi, you create a folder `~/praats`, |
| 246 |
after which you can push the sources from your Mac to your Raspberry Pi with |
| 247 |
|
| 248 |
# in Mac:~/.bash_profile |
| 249 |
ORIGINAL_SOURCES="~/Praats/src" |
| 250 |
EXCLUDES='--exclude="*.xcodeproj" --exclude="Icon*" --exclude=".*" --exclude="*kanweg*"' |
| 251 |
alias praats-putpi="rsync -rptvz -e ssh $EXCLUDES \ |
| 252 |
$ORIGINAL_SOURCES/ [email protected]:~/praats" |
| 253 |
|
| 254 |
On the Raspberry Pi, you define |
| 255 |
|
| 256 |
# in RaspberryPi:~/.bash_aliases |
| 257 |
alias praat-build="( cd ~/praats &&\ |
| 258 |
make -j4 )" |
| 259 |
alias praat="~/praats/praat" |
| 260 |
alias praat-run="praat-build && praat" |
| 261 |
|
| 262 |
after which you can build and run Praat with |
| 263 |
|
| 264 |
# on Raspberry Pi command line |
| 265 |
praat-run |
| 266 |
|
| 267 |
Thus, the cycle from editing Praat on the Mac to running it on your Raspberry Pi therefore takes three steps: |
| 268 |
|
| 269 |
1. edit and save the source code in Xcode on your Mac; |
| 270 |
2. type `praats-putpi` on your Mac; |
| 271 |
3. type `praat-run` on your Raspberry Pi, perhaps via `ssh -X [email protected]` in your Mac terminal. |
| 272 |
|
| 273 |
From clean sources this takes around 19 minutes (on a Raspberry Pi 4B), |
| 274 |
but if no header files change, then it can be done in approximately 20 seconds. |
| 275 |
|
| 276 |
## 6. s390x development set-up on LinuxONE |
| 277 |
|
| 278 |
Once you have a (permanent) open-source LinuxONE account (https://community.ibm.com/zsystems/form/l1cc-oss-vm-request/), |
| 279 |
you will probably have an SSH key generated in a `*.pem` file, |
| 280 |
which you moved for instance to `~/Dropbox/Praats/ssh/mylinux1key.pem`. |
| 281 |
|
| 282 |
On your LinuxONE virtual machine, you create folders `~/praats` and `~/praatsb`, |
| 283 |
after which you can push the sources from your Mac to your LinuxONE VM with |
| 284 |
|
| 285 |
# in Mac:~/.bash_profile |
| 286 |
ORIGINAL_SOURCES="~/Praats/src" |
| 287 |
EXCLUDES='--exclude="*.xcodeproj" --exclude="Icon*" --exclude=".*" --exclude="*kanweg*"' |
| 288 |
alias praats-putone="rsync -rptvz -e \"ssh -i ~/Dropbox/Praats/ssh/mylinux1key.pem\" $EXCLUDES \ |
| 289 |
$ORIGINAL_SOURCES/ [email protected]:~/praats" |
| 290 |
|
| 291 |
where instead of `199.199.99.99` you use the IP address that the LinuxONE owners sent to you. |
| 292 |
In your LinuxONE VM, you define |
| 293 |
|
| 294 |
# in LinuxONE:~/.bash_profile |
| 295 |
alias praat-build="( cd ~/praats &&\ |
| 296 |
make -j4 )" |
| 297 |
alias praat="~/praats/praat" |
| 298 |
alias praat-run="praat-build && praat" |
| 299 |
alias praatb-build="( cd ~/praatsb &&\ |
| 300 |
make -j4 )" |
| 301 |
alias praatb="~/praatsb/praat_barren" |
| 302 |
alias praatb-run="praatb-build && praatb" |
| 303 |
|
| 304 |
after which you can build and run Praat with |
| 305 |
|
| 306 |
# on LinuxONE command line |
| 307 |
praat-run |
| 308 |
|
| 309 |
Thus, the cycle from editing Praat on the Mac to running it on your LinuxONE VM therefore takes three steps: |
| 310 |
|
| 311 |
1. edit and save the source code in Xcode on your Mac; |
| 312 |
2. type `praats-putone` on your Mac; |
| 313 |
3. type `praat-run` on your LinuxONE VM, |
| 314 |
perhaps via `ssh -X -i ~/Dropbox/Praats/ssh/mylinux1key.pem [email protected]` in your Mac terminal. |
| 315 |
|
| 316 |
## 7. Distributing Praat |
| 317 |
|
| 318 |
If you want to distribute your version of Praat, you can do so on GitHub and/or on a website |
| 319 |
(at least, that’s how the main authors do it). Both of these venues require that you have |
| 320 |
all the executables in one place. The guide below refers to the creation of packages |
| 321 |
for all platforms for Praat version 9.9.99, although your version number will be different. |
| 322 |
The packages will be collected in the directory `~/Praats/www` on the Mac. |
| 323 |
|
| 324 |
If you follow the location mentioned in the `.xcodeproj` file, the Mac binary will reside |
| 325 |
in a place like `~/Dropbox/Praats/bin/Configuration64`. |
| 326 |
|
| 327 |
After notarizing the Mac binary (see section 2 of [HOW_TO_BUILD_ONE.md](HOW_TO_BUILD_ONE.md)), |
| 328 |
you include the executable in a `.dmg` disk image, with the following commands: |
| 329 |
|
| 330 |
# on Mac command line |
| 331 |
PRAAT_WWW="~/Dropbox/Praats/www" |
| 332 |
PRAAT_VERSION=9999 |
| 333 |
cd ~/Dropbox/Praats/bin/macos/Configuration64 |
| 334 |
hdiutil create -fs HFS+ -ov -srcfolder Praat.app -volname Praat_${PRAAT_VERSION} praat_${PRAAT_VERSION}.dmg |
| 335 |
hdiutil convert -ov -format UDZO -o ${PRAAT_WWW}/praat${PRAAT_VERSION}_mac.dmg praat_${PRAAT_VERSION}.dmg |
| 336 |
rm praat_${PRAAT_VERSION}.dmg |
| 337 |
|
| 338 |
You also need to distribute the `.xcodeproj` file, which is actually a folder, so that you have to zip it: |
| 339 |
|
| 340 |
# on Mac command line |
| 341 |
ORIGINAL_SOURCES="~/Dropbox/Praats/src" |
| 342 |
cd $ORIGINAL_SOURCES |
| 343 |
zip -r $PRAAT_WWW/praat${PRAAT_VERSION}_xcodeproj.zip praat.xcodeproj |
| 344 |
|
| 345 |
The Windows executables have to be sent from your Cygwin terminal or MSYS shell to your Mac. |
| 346 |
It is easiest to do this without a version number (so that you have to supply the number only once), |
| 347 |
so you send them to the intermediate Mac folders `~/Dropbox/Praats/bin/win-x64v1` |
| 348 |
and `~/Dropbox/Praats/bin/win-x64v3` |
| 349 |
and `~/Dropbox/Praats/bin/win-intel32` and `~/Dropbox/Praats/bin/win-arm64`. |
| 350 |
On MSYS you can define: |
| 351 |
|
| 352 |
# in MSYS:~/.bashrc |
| 353 |
alias praat-dist="praat-build && rsync -t ~/praats/Praat.exe /z/Dropbox/Praats/bin/win-arm64" |
| 354 |
alias praat1-dist="praat1-build && rsync -t ~/praats1/Praat.exe /z/Dropbox/Praats/bin/win-x64v1" |
| 355 |
alias praat3-dist="praat3-build && rsync -t ~/praats3/Praat.exe /z/Dropbox/Praats/bin/win-x64v3" |
| 356 |
alias praat32-dist="praat32-build && rsync -t ~/praats32/Praat.exe /z/Dropbox/Praats/bin/win-intel32" |
| 357 |
|
| 358 |
so that you can “upload” the four executables to the Mac with |
| 359 |
|
| 360 |
# on MSYS command line |
| 361 |
praat-dist |
| 362 |
praat1-dist |
| 363 |
praat3-dist |
| 364 |
praat32-dist |
| 365 |
|
| 366 |
The three Linux executables have to be sent from your Ubuntu terminal to your Mac, |
| 367 |
namely to the folder `~/Dropbox/Praats/bin/linux_x64v3` or `~/Dropbox/Praats/bin/linux_arm64` |
| 368 |
(each of which will contain `praat` and `praat_barren`), and to the folder |
| 369 |
`~/Dropbox/Praats/bin/chrome_x64v1` or `~/Dropbox/Praats/bin/chrome_arm64` |
| 370 |
(which will contain only `praat`). |
| 371 |
On Ubuntu you can define |
| 372 |
|
| 373 |
# in MSYS2 Intel64/AMD64 Ubuntu:~/.bash_aliases |
| 374 |
alias praat-dist="praat-build && rsync -t ~/praats/praat /Users/yourname/Dropbox/Praats/bin/linux-x64v3" |
| 375 |
alias praatb-dist="praatb-build && rsync -t ~/praatsb/praat_barren /Users/yourname/Dropbox/Praats/bin/linux-x64v3" |
| 376 |
alias praatc-dist="praatc-build && rsync -t ~/praatsc/praat /Users/yourname/Dropbox/Praats/bin/chrome-x64v1" |
| 377 |
|
| 378 |
# in MSYS2 ARM64 Ubuntu:~/.bash_aliases |
| 379 |
alias praat-dist="praat-build && rsync -t ~/praats/praat /Users/yourname/Dropbox/Praats/bin/linux-arm64" |
| 380 |
alias praatb-dist="praatb-build && rsync -t ~/praatsb/praat_barren /Users/yourname/Dropbox/Praats/bin/linux-arm64" |
| 381 |
alias praatc-dist="praatc-build && rsync -t ~/praatsc/praat /Users/yourname/Dropbox/Praats/bin/chrome-arm64" |
| 382 |
|
| 383 |
so that you can “upload” the three executables to the Mac with |
| 384 |
|
| 385 |
# on Ubuntu or Fedora command line |
| 386 |
praat-dist |
| 387 |
praatb-dist |
| 388 |
praatc-dist |
| 389 |
|
| 390 |
You can fetch the Raspberry Pi edition directly from your Raspberry Pi: |
| 391 |
|
| 392 |
# on Mac command line |
| 393 |
rsync -tpvz -e ssh [email protected]:~/praats/praat ~/Dropbox/Praats/bin/rpi-armv7 |
| 394 |
|
| 395 |
and the s390x edition directly from your LinuxONE account: |
| 396 |
|
| 397 |
# on Mac command line |
| 398 |
rsync -tpvz -e "ssh -i ~/Dropbox/Praats/ssh/mylinux1key.pem" [email protected]:~/praats/praat ~/Dropbox/Praats/bin/linux-s390x |
| 399 |
rsync -tpvz -e "ssh -i ~/Dropbox/Praats/ssh/mylinux1key.pem" [email protected]:~/praatsb/praat_barren ~/Dropbox/Praats/bin/linux-s390x |
| 400 |
|
| 401 |
When the folders under `~/Dropbox/Praats/bin`, namely `win-intel64`, `win-intel32`, `win-arm64`, |
| 402 |
`linux-intel64`, `linux-arm64`, `chrome-intel64`, `chrome-arm64` and `rpi-armv7` |
| 403 |
all contain enough new executables (there should be 1, 1, 1, 3, 3, 1, 1 and 1, respectively), |
| 404 |
you can issue the following commands to create the packages and install them in `~/Dropbox/Praats/www`: |
| 405 |
|
| 406 |
# on Mac command line |
| 407 |
zip $PRAAT_WWW/praat${PRAAT_VERSION}_win-x64v3.zip ~/Dropbox/Praats/bin/win-x64v3/Praat.exe |
| 408 |
zip $PRAAT_WWW/praat${PRAAT_VERSION}_win-x64v1.zip ~/Dropbox/Praats/bin/win-x64v1/Praat.exe |
| 409 |
zip $PRAAT_WWW/praat${PRAAT_VERSION}_win-intel32.zip ~/Dropbox/Praats/bin/win-intel32/Praat.exe |
| 410 |
zip $PRAAT_WWW/praat${PRAAT_VERSION}_win-arm64.zip ~/Dropbox/Praats/bin/win-arm64/Praat.exe |
| 411 |
( cd ~/Dropbox/Praats/bin/linux-x64v3 &&\ |
| 412 |
tar cvf praat${PRAAT_VERSION}_linux-x64v3.tar praat &&\ |
| 413 |
gzip praat${PRAAT_VERSION}_linux-x64v3.tar &&\ |
| 414 |
mv praat${PRAAT_VERSION}_linux-x64v3.tar.gz $PRAAT_WWW ) |
| 415 |
( cd ~/Dropbox/Praats/bin/linux-x64v3 &&\ |
| 416 |
tar cvf praat${PRAAT_VERSION}_linux-x64v3-barren.tar praat_barren &&\ |
| 417 |
gzip praat${PRAAT_VERSION}_linux-x64v3-barren.tar &&\ |
| 418 |
mv praat${PRAAT_VERSION}_linux-x64v3-barren.tar.gz $PRAAT_WWW ) |
| 419 |
( cd ~/Dropbox/Praats/bin/chrome-x64v1 &&\ |
| 420 |
tar cvf praat${PRAAT_VERSION}_chrome-x64v1.tar praat &&\ |
| 421 |
gzip praat${PRAAT_VERSION}_chrome-x64v1.tar &&\ |
| 422 |
mv praat${PRAAT_VERSION}_chrome-x64v1.tar.gz $PRAAT_WWW ) |
| 423 |
( cd ~/Dropbox/Praats/bin/linux-arm64 &&\ |
| 424 |
tar cvf praat${PRAAT_VERSION}_linux-arm64.tar praat &&\ |
| 425 |
gzip praat${PRAAT_VERSION}_linux-arm64.tar &&\ |
| 426 |
mv praat${PRAAT_VERSION}_linux-arm64.tar.gz $PRAAT_WWW ) |
| 427 |
( cd ~/Dropbox/Praats/bin/linux-arm64 &&\ |
| 428 |
tar cvf praat${PRAAT_VERSION}_linux-arm64-barren.tar praat_barren &&\ |
| 429 |
gzip praat${PRAAT_VERSION}_linux-arm64-barren.tar &&\ |
| 430 |
mv praat${PRAAT_VERSION}_linux-arm64-barren.tar.gz $PRAAT_WWW ) |
| 431 |
( cd ~/Dropbox/Praats/bin/chrome-arm64 &&\ |
| 432 |
tar cvf praat${PRAAT_VERSION}_chrome-arm64.tar praat &&\ |
| 433 |
gzip praat${PRAAT_VERSION}_chrome-arm64.tar &&\ |
| 434 |
mv praat${PRAAT_VERSION}_chrome-arm64.tar.gz $PRAAT_WWW ) |
| 435 |
( cd ~/Dropbox/Praats/bin/rpi-armv7 &&\ |
| 436 |
tar cvf praat${PRAAT_VERSION}_rpi-armv7.tar praat &&\ |
| 437 |
gzip praat${PRAAT_VERSION}_rpi-armv7.tar &&\ |
| 438 |
mv praat${PRAAT_VERSION}_rpi-armv7.tar.gz $PRAAT_WWW ) |
| 439 |
( cd ~/Dropbox/Praats/bin/linux-s390x &&\ |
| 440 |
tar cvf praat${PRAAT_VERSION}_linux-s390x.tar praat &&\ |
| 441 |
gzip praat${PRAAT_VERSION}_linux-s390x.tar &&\ |
| 442 |
mv praat${PRAAT_VERSION}_linux-s390x.tar.gz $PRAAT_WWW ) |
| 443 |
|
| 444 |
Finally, you can update your website and/or create a new release on GitHub. |