Skip to content

Commit e13bbe8

Browse files
committed
Fixed inreplace
1 parent c18db8b commit e13bbe8

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Formula/ssh-studio.rb

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ def install
3131

3232
ENV["PYTHON"] = Formula["[email protected]"].opt_bin/"python3"
3333

34+
inreplace "data/ssh-studio.in", "python3", "#{Formula["[email protected]"].opt_bin}/python3"
35+
3436
system "meson", "setup", "build", *std_meson_args
3537
system "meson", "compile", "-C", "build"
3638
system "meson", "install", "-C", "build"
@@ -48,12 +50,6 @@ def install
4850
cp_r Dir["src/ui/*.py"], python_site_packages/"ssh_studio/ui/"
4951
cp_r "src/ui/__init__.py", python_site_packages/"ssh_studio/ui/"
5052

51-
(bin/"ssh-studio").write <<~SH
52-
#!/bin/bash
53-
exec "#{Formula["[email protected]"].opt_bin}/python3" -m ssh_studio.main "$@"
54-
SH
55-
chmod 0755, bin/"ssh-studio"
56-
5753
app_root = prefix/"Applications/SSH Studio.app/Contents"
5854
(app_root/"MacOS").mkpath
5955
(app_root/"Resources").mkpath

0 commit comments

Comments
 (0)