Skip to content

Instantly share code, notes, and snippets.

@7468696e6b
Last active April 8, 2021 00:42
Show Gist options
  • Save 7468696e6b/1e25ee3b80eafe0689666ef2ee926ae7 to your computer and use it in GitHub Desktop.
Save 7468696e6b/1e25ee3b80eafe0689666ef2ee926ae7 to your computer and use it in GitHub Desktop.
How to install Tagaini Jisho on an Apple Silicon/arm64/"M1" Mac (macOS ≥ 11.0)

Step 1: clone repo

% git clone https://github.com/Gnurou/tagainijisho

Step 2: install dependencies (get homebrew if you don't have it, see more info at https://brew.sh/)

% brew install cmake
% brew install qt@5
  • add qt 5 to path:
export PATH="/opt/homebrew/opt/qt@5/bin:$PATH"
  • you may also add the above line to .zshrc to make it permanent, if you desire to build qt 5 applications in the future

Step 3: edit the line in CMakeLists.txt (in your git-cloned folder)
from set(CMAKE_OSX_DEPLOYMENT_TARGET "10.6") to set(CMAKE_OSX_DEPLOYMENT_TARGET "11.0")

  • here you are setting the OSX target to at least 11.0, adjust as necessary depending on your requirements

follow steps outlined in the git repo README.md file
make and build

% cd $PROJECT
% mkdir build && cd build

config

% cmake -DCMAKE_INSTALL_PREFIX=$HOME/Applications -DEMBED_SQLITE=1 ..

build

% make

Install (application bundle will be installed to $HOME/Applications):

% make install

Step 4: create a self-signed certificate in the Keychain Access app. Give the profile code-signing permissions (get info -> trust -> set "Code signing" to "always trust"

Step 5: go to your application directory

% cd $HOME/Applications

Step 6: codesign it!

% sudo codesign --force --deep -s <certName> Tagaini\ Jisho.app

(certName is the name of the certificate you created in step 4)

Step 7: run it! Enjoy your journey of Japanese learning!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment