Skip to content

Commit

Permalink
feat: add macos bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
thecaralice authored and marienz committed Oct 31, 2024
1 parent dfe1d25 commit 8f41e76
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions build-helpers/build-emacs-with-doom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,21 @@
# See the License for the specific language governing permissions and
# limitations under the License.

mkdir -p $out/bin
ln -s $emacs/bin/* $out/bin/
rm $out/bin/emacs-*
ln -sf $doomEmacs/bin/doom-emacs $out/bin/emacs
ln -sf $doomEmacs/bin/{doom,doomscript} $out/bin/
mkdir -p "$out/bin"
ln -s "$emacs"/bin/* "$out/bin/"
rm "$out"/bin/emacs-*
ln -sf "$doomEmacs/bin/doom-emacs" "$out/bin/emacs"
ln -sf "$doomEmacs"/bin/{doom,doomscript} "$out/bin/"

mkdir -p $out/share
mkdir -p "$out/share"
# Don't link everything: the systemd units would still refer to normal Emacs.
# This links the same stuff emacsWithPackages does.
for dir in applications icons info man; do
ln -s $emacs/share/$dir $out/share/$dir
ln -s "$emacs/share/$dir" "$out/share/$dir"
done

if [ -d "$emacs/Applications" ]; then
cp -R "$emacs/Applications" "$out/Applications"
chmod -R u+w "$out/Applications"
ln -sf "$out/bin/emacs" "$out/Applications/Emacs.app/Contents/MacOS/Emacs"
fi

0 comments on commit 8f41e76

Please sign in to comment.