Include Altirra scripts for Linux and macOS
Opened this issue · 0 comments
peterdell commented
https://forums.atariage.com/topic/348651-wudsn-altirra-linux/
by WillyVMM for Linux
#!/bin/bash
#
# Linux wrapper for altira integration with WUDSN
#
# If you change the Default Command Line:
# ${runnerExecutablePath} /singleinstance ${outputFilePath}
# PLease adjust the sript too
#
# requires: wine
#
# usage:
# Copy the script into Altirra folder
# Put path to the script into the "Path To Aplication" field under
# Window->Prederences->Languages->Assembler->Atari 8-bit Assembler->Altirra TAB
#
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
WINE=wine
ALTIRRA=Altirra64.exe
XEX_PATH=$(winepath --windows $2)
#supress wine warnings
export "WINEDEBUG=-all"
#and finally start Altirra.
$WINE ${SCRIPT_DIR}/${ALTIRRA} ${1} ${XEX_PATH}
by skr for macOS, see also https://atariwiki.org/wiki/Wiki.jsp?page=Altirra
#/!bin/bash
fullpath="${1//\"}"
lstfile=${fullpath%*.xex}.lst
sed "/mads /a\\
Source: $lstfile
" $lstfile > $lstfile.temp
mv $lstfile.temp $lstfile
FILE="${fullpath%*.}"
basename "$FILE"
f="$(basename -- $FILE)"
/usr/local/bin/wine64 ~/jac/wudsn/Tools/EMU/Altirra/Altirra64.exe $f