Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
875dbf5
Create mac-build-intel.sh
flagsoft May 28, 2026
8ceefec
Create mac-build-intel.md
flagsoft May 28, 2026
ec3e61f
Merge branch 'sillsdev:master' into master
flagsoft May 28, 2026
897fd99
Create readme.md
flagsoft May 28, 2026
b40ba4e
Update readme.md
flagsoft May 28, 2026
2d42fdc
Update readme.md
flagsoft May 28, 2026
6ed1553
Update readme.md
flagsoft May 28, 2026
ee6839b
Update readme.md
flagsoft May 28, 2026
292c9a6
Update mac-build-intel.md
flagsoft May 28, 2026
e2676d4
Update readme.md
flagsoft May 28, 2026
2029e88
Update readme.md
flagsoft May 28, 2026
ef3825d
Merge branch 'sillsdev:master' into master
flagsoft May 29, 2026
0238c13
pip install ".[gui]" - typo ?
flagsoft May 29, 2026
402dda0
Merge branch 'sillsdev:master' into master
flagsoft May 29, 2026
f80b3de
Typo? 19 MAY -> 29. MAY
flagsoft May 29, 2026
1a19154
Update ReleaseNotes.txt
flagsoft Jun 1, 2026
c26f9a4
Merge branch 'master' into master
flagsoft Jun 1, 2026
f127938
2026-06jun-01 released
flagsoft Jun 1, 2026
2591d3f
Merge branch 'sillsdev:master' into master
flagsoft Jun 2, 2026
b5cef2e
Merge branch 'sillsdev:master' into master
flagsoft Jun 3, 2026
a063699
Merge branch 'sillsdev:master' into master
flagsoft Jun 3, 2026
7f61132
Merge branch 'sillsdev:master' into master
flagsoft Jun 3, 2026
1c5a31a
Update readme.md
flagsoft Jun 5, 2026
68090e2
Update readme.md
flagsoft Jun 5, 2026
1fcebd2
Update readme.md
flagsoft Jun 5, 2026
83d38fd
Update readme.md
flagsoft Jun 5, 2026
db6a8c9
Merge branch 'sillsdev:master' into master
flagsoft Jun 5, 2026
22ed3c1
Ad hoc code sign - run autonomous
flagsoft Jun 5, 2026
7605b5a
Merge branch 'sillsdev:master' into master
flagsoft Jun 8, 2026
90321b1
Merge branch 'sillsdev:master' into master
flagsoft Jun 8, 2026
4a0aa9b
Merge branch 'sillsdev:master' into master
flagsoft Jun 8, 2026
e2bee9b
Merge branch 'sillsdev:master' into master
flagsoft Jun 8, 2026
2a1534f
Merge branch 'sillsdev:master' into master
flagsoft Jun 9, 2026
23366ae
Merge branch 'sillsdev:master' into master
flagsoft Jun 9, 2026
5897ee1
Merge branch 'sillsdev:master' into master
flagsoft Jun 10, 2026
d938076
Merge branch 'sillsdev:master' into master
flagsoft Jun 10, 2026
cc5c77b
Merge branch 'sillsdev:master' into master
flagsoft Jun 11, 2026
9b85027
Merge branch 'sillsdev:master' into master
flagsoft Jun 11, 2026
6edcff7
Merge branch 'sillsdev:master' into master
flagsoft Jun 12, 2026
c490d8d
Merge branch 'sillsdev:master' into master
flagsoft Jun 13, 2026
6b6d5af
Merge branch 'sillsdev:master' into master
flagsoft Jun 15, 2026
6dcc25c
Merge branch 'sillsdev:master' into master
flagsoft Jun 18, 2026
c5c6aec
Merge branch 'sillsdev:master' into master
flagsoft Aug 2, 2026
f558dd5
Update mac-build-intel.sh - will work for all versions
flagsoft Aug 6, 2026
62e066c
Merge branch 'sillsdev:master' into master
flagsoft Aug 9, 2026
178670a
Merge branch 'sillsdev:master' into master
flagsoft Aug 11, 2026
5fb2de4
Merge branch 'sillsdev:master' into master
flagsoft Aug 13, 2026
274ffbd
Merge branch 'sillsdev:master' into master
flagsoft Aug 16, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions distribution/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Distribution

This is an non-official distribution of PTXprint for macOS with Intel(TM) chips.

<img width="640" alt="02-layout" src="https://github.com/user-attachments/assets/a1917c06-a062-4775-b1d8-f84b1e6ac294" />



## Download macOS App (for Intel chip only)

Download any version here:
https://www.flagsoft.com/public/ptxprint/

### sha256sum
ba288c6d028d500020876174ccd57921f94789ced71882a11af1cd2628dda60b, 3.0.32, PTXprint.zip


<!--
### 2026-06jun-01, Version 3.0.31, https://www.flagsoft.com/public/ptxprint/2026-06jun-01/PTXprint.zip

sha256sum of ZIP file: ad1b6436f35650e404fc072e72f5ec3b663e78b2de8dc8fcc62aed3a5eb8e377
-->

<!--
### 2026-05may-28, Version 3.0.30, https://www.flagsoft.com/public/ptxprint/2026-05may-28/PTXprint.zip

sha256sum of ZIP file: 19f6129608b88e5a1343d93c94d4480c10a37863592cc7e578c450deeba4bda4
-->



### Important NOTE after downloading .app file

When an application gets downloaded from any source other than those that Apple seems suited, the application gets an extended attribute "com.apple.Quarantine".
This triggers the message: "application XY is damaged and can't be opened. You should move it to the Bin."

Remove the attribute and you can launch the application.

So after download: open a console and type:
```
$ xattr -c <path/to/application.app>
```
After that you can run the App as usual.



### You must Install XeTeX separately

You *must* install XeTeX with brew (Homebrew), see https://brew.sh/ else it will not work.

```
% brew install xetex
```

This will install XeTeX with binaries:

```
/usr/local/bin/fc-list
/Library/TeX/texbin/xetex
/Library/TeX/texbin/xdvipdfmx
```



124 changes: 124 additions & 0 deletions docs/dev/mac-build-intel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
# How to compile and run PTXprint on macOS for macOS with Intel chips

Date: 2026-05may-28

## Distribution

You can find an App binary here:
https://github.com/flagsoft/ptx2pdf/blob/master/distribution/readme.md

## Ideas for future versions

- Maybe there should be a Settings > TeTeX path input box where user can setup which TeTeX will be used.

## Instructions

- Just follow the instructions in the script below.

## Issues
- The created .app within the DMG does not work (but the .app outside the dmg does work)

```
#!/bin/bash
## -- mac-build-intel.sh
## status: works
##
## History
## 2026-05may-28, seems to work for build .app but not app within .dmg.
## - The generated App WITHIN DMG is BAD and will not work. Does nothing. App does not show, but seems to use CPU forever.
## (But the created .app outside the DMG will work)
##
## Instructions
## 1. install brew (Homebrew) on your macOS and the following packages:
## % brew install gtk+3
## % brew install gtksourceview3
## % brew install xetex
## % npm install -g appdmg
##
## 2. for some reason a font is hard coded, so install it:
## https://fonts.google.com/specimen/Source+Code+Pro
## Just double click on all font files within macOS Finder to install fonts
##
## 3. follow the instructions here
##


echo "mac-build-intel.ch -- Build App for Intel based Macs."
echo "NOTE: This is NOT an automated script!"
echo "Instead you need to do copy past manually to your command line terminal and patch some code manually."
exit


## -- get source code from github

git clone --depth=1 https://github.com/sillsdev/ptx2pdf.git

cd ptx2pdf


## -- prepare for build
## add your Apple Code Sign identity here:
export NOTARIZATION_CODESIGN_IDENTITY="1234567890"


## -- find out where you have your homebrew (brew) installed
export HOMEBREW_PREFIX=`brew config | grep HOMEBREW_PREFIX | cut -f2 -d: | awk '{$1=$1};1'`
## /usr/local
echo "-- your HOMEBREW_PREFIX is:"
echo "$HOMEBREW_PREFIX"


## -- the following lines are taken from https://github.com/sillsdev/ptx2pdf/mac-build.sh
python3 -m venv --system-site-packages _venv
source _venv/bin/activate
pip3 install -e .
pip3 install pyinstaller




## -- patch source code

## -- make sure you use Gtk 3 else your app will crash later

## main.py add on top:
## import gi
## gi.require_version('Gtk', '3.0')


## [PYI-14051:ERROR] Failed to execute script 'ptxprint' due to unhandled exception: gtk-builder-error-quark: .:15738:56 Invalid object type 'GtkSourceBuffer' (6)
## gtkview.py add about on top:
## gi.require_version('GtkSource', '3.0')
## gi.require_version('Gtk', '3.0')




## -- build

## -- the following command will compile the .app and .dmg
## -- if you need to re-compile things, just call this line and do the patch below again
pyinstaller ptxprint.spec -y




## -- patch fix the app binary within ./dist so that it can find xetex

echo "fix the app so that if finds xetex"
mkdir -p ./dist/PTXprint.app/Contents/Frameworks/ptxprint/xetex/bin/darwin_x86_64/
ln -s /usr/local/bin/fc-list ./dist/PTXprint.app/Contents/Frameworks/ptxprint/xetex/bin/darwin_x86_64
ln -s /Library/TeX/texbin/xetex ./dist/PTXprint.app/Contents/Frameworks/ptxprint/xetex/bin/darwin_x86_64
ln -s /Library/TeX/texbin/xdvipdfmx ./dist/PTXprint.app/Contents/Frameworks/ptxprint/xetex/bin/darwin_x86_64


## -- run app from command line
echo "Run app with ./dist/PTXprint.app/Contents/MacOS/PTXprint-app"
echo "Or just double click PTXprint-app.app within macOS Finder as usual."
echo "You can copy PTXprint-app.app in /Applications folder."




## EOF.
```
Loading