twardoch / subtitle-edit-mac-wine

Way to use https://github.com/SubtitleEdit/subtitleedit/ on macOS 11
The Unlicense
36 stars 5 forks source link

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

Open beesyrupfactory opened 3 months ago

beesyrupfactory commented 3 months ago

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"


7. 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 commented 2 months ago

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 commented 1 month ago

Sorry, can you describe what you are encountering?

justarish commented 1 month ago

Sorry, can you describe what you are encountering?

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

justarish commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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

justarish commented 1 month ago

@beesyrupfactory log.txt

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

beesyrupfactory commented 1 month ago

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 commented 1 month ago

Thanks for checking!