mirror of
https://github.com/a2-4am/4live.git
synced 2024-10-11 06:23:39 +00:00
fix automated build of disk image to patch in stubbed file length of 4live binary
This commit is contained in:
parent
715fca1992
commit
ba3580516c
6
Makefile
6
Makefile
@ -22,6 +22,7 @@ SRC=src
|
||||
# project files
|
||||
BLANKDISK=$(RES)/work.dsk
|
||||
BUILDDISK=$(BUILD)/$(PGM).dsk
|
||||
TEMPDISK=$(BUILD)/temp.dsk
|
||||
|
||||
# third-party tools required to build
|
||||
# https://sourceforge.net/projects/acme-crossass/
|
||||
@ -39,5 +40,8 @@ $(PGM):
|
||||
mkdir -p $(BUILD)
|
||||
cd $(SRC) && $(ACME) -o ../$(BUILD)/$(PGM) $(PGM).a && cd -
|
||||
cp $(BLANKDISK) $(BUILDDISK)
|
||||
java -jar $(AC) -p $(BUILDDISK) $(A2PGM) B 0x8000 < $(BUILD)/$(PGM)
|
||||
java -jar $(AC) -cc65 $(BUILDDISK) $(A2PGM) B < $(BUILD)/$(PGM)
|
||||
rsync -a $(BUILDDISK) $(TEMPDISK)
|
||||
(xxd -p -c256 $(TEMPDISK)| head -49; xxd -p -c256 $(BUILD)/$(PGM) | head -1; xxd -p -c256 $(TEMPDISK)| tail -510) | xxd -r -p > $(BUILDDISK)
|
||||
rm -f $(TEMPDISK)
|
||||
osascript $(BIN)/V2Make.scpt "`pwd`" $(BUILDDISK)
|
||||
|
Loading…
Reference in New Issue
Block a user