Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subtitle Edit download part of the script doesn't work (workaround that works so far on Sonoma 14.5) #9

Open
beesyrupfactory opened this issue Jul 11, 2024 · 10 comments

Comments

@beesyrupfactory
Copy link

I kept getting 404 errors when copying in the latest version of Subtitle Edit (4.0.7 to date). Not sure why curl was unable to grab it using your script, but I worked around this using the following steps:

  1. Prerequisite, Homebrew was already installed.
  2. Grab the latest Portable Edition of Subtitle Edit (i.e., SE407.zip to date) from https://github.com/SubtitleEdit/subtitleedit/releases
  3. Run git clone https://github.com/twardoch/subtitle-edit-mac-wine from the desired directory
  4. Go to the subtitle-edit-mac-wine directory
  5. Copy SE407.zip into the subtitle-edit-mac-wine folder, and rename it as se.zip.
  6. Modify the install-mac.command file as follows:
dir=${0%/*}
if [ "$dir" = "$0" ]; then
  dir="."
fi
cd "$dir"

# Install the gcenx/wine build

brew tap gcenx/wine
brew install tesseract
brew install --cask wine-crossover
brew install winetricks

export WINEPREFIX=${HOME}/.wine-se/

# Install .NET 4.8

winetricks -q --force dotnet48
winetricks -q --force lavfilters
winetricks -q --force win10

# Install Subtitle Edit portable

unzip "$dir/se.zip" -d "$WINEPREFIX/drive_c/Program Files/Subtitle Edit/"
rm "$dir/se.zip"

cp "$dir/subtitleeditw" "/usr/local/bin"
  1. From the same subtitle-edit-mac-wine directory, run ./subtitleeditw

(All I did was remove the initial prompt to download the portable Subtitle Edit ZIP file, homebrew and also removed the part that used curl to download the ZIP file.)

@justarish
Copy link

justarish commented Sep 3, 2024

Is it possible to get more info about this? I only get fix me, prefix and in experimental wow64 mode errors. Also tried to re-install wine, but same problem.

@beesyrupfactory
Copy link
Author

Sorry, can you describe what you are encountering?

@justarish
Copy link

Sorry, can you describe what you are encountering?

I've tried it again, seems like it's working now. Thanks!

@justarish
Copy link

Sorry, can you describe what you are encountering?

I've tried it again, seems like it's working now. Thanks!

Does the batch function work for you?

@beesyrupfactory
Copy link
Author

Hey @justarish , can you post the output of what you're seeing? I can't help if I don't understand where you're at.

@justarish
Copy link

justarish commented Sep 20, 2024

Hey @beesyrupfactory, sure!

Scherm­afbeelding 2024-09-20 om 12 22 53

This is what I see when I click on batch convert. Any idea to fix this?

@beesyrupfactory
Copy link
Author

Thanks @justarish. I did not encounter this issue. Can you try running winetricks -q --force dotnet48 and try opening it again?

@justarish
Copy link

@beesyrupfactory
log.txt

This doesn't seem right... it's still running.

@beesyrupfactory
Copy link
Author

You know what, I checked batch conversion, and get the exact same issue when I try to use Batch Conversion. I'm afraid I don't know how to address this behavior. The scope of this bug report was to simply try to get it working on Apple Silicon :)

You may want to create a new bug report reporting this behavior to see if @twardoch knows how to handle this, or possibly, you might want to report this in the https://github.com/SubtitleEdit/subtitleedit issues.

@justarish
Copy link

Thanks for checking!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants