UnclePunch / Training-Mode

A modpack for Super Smash Bros, Melee for practicing tech.
307 stars 66 forks source link

Linux ISO Compilation Instructions #20

Open ghost opened 3 years ago

ghost commented 3 years ago

Linux ISO Compilation Instructions

I use Ubuntu so there might have to be some slight tweaking for other distros but this should cover most. Feel free to put this in the instructions section. I doubt many people will need this but for those that do it's here.

  1. Open terminal and install Wine and xDelta3. Wine helps run Windows stuff on Linux which we will need for the .bat and xDelta3 will let you run the xdelta executable.

    sudo apt install xdelta3 wine64
  2. Change directories to be inside the "TM ISO Builder/Windows" folder wherever you have that folder located. You should see the .bat, instructions.txt, and the xdelta.exe files there.
  3. Place your vanilla melee iso into this folder. Rename it something simple. I named mine "Melee.iso"
  4. Make a backup of the "Drag Melee v1.02 ISO Here.bat" file.

    cp Drag\ Melee\ v1.02\ ISO\ Here.bat Drag\ Melee\ v1.02\ ISO\ Here.bat.bak
  5. Open the "Drag Melee v1.02 ISO Here.bat" file with your text editor of choice.

    vim Drag\ Melee\ v1.02\ ISO\ Here.bat
  6. Change the line

    xdelta.exe -d -f -s %1 "../patch.xdelta" "Training Mode v2.0 Beta 3.iso"

    To match the line below (the "%1" tells the .bat to use the file dropped on it, which you can't do on Linux. So we have to tell it what file to use).

    xdelta.exe -d -f -s Melee.iso "../patch.xdelta" "Training Mode v2.0 Beta 3.iso"
  7. Change permissions on the .bat file and the xdelta.exe to be executable.

    chmod a+rx Drag\ Melee\ v1.02\ ISO\ Here.bat
    chmod a+rx xdelta.exe
  8. Run the command below

    sudo wineconsole Drag\ Melee\ v1.02\ ISO\ Here.bat
  9. A Windows like terminal should show up and the file should start processing. Once completed the compiled iso should be in your folder.

Hope this helps anyone using Linux that wanted to compile this iso.

Hunter