Skip to content

Commit

Permalink
make.rb will now create a zip file for X16 output
Browse files Browse the repository at this point in the history
  • Loading branch information
johanberntsson committed Feb 29, 2024
1 parent 92325bf commit 242587a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
all: x16

x16:
ruby make.rb -s examples/dragontroll.z5 -t:x16 -v
ruby make.rb -s examples/dragontroll.z5 -t:x16
#acme --cpu 65c02 -o testx16.bin --format cbm -l temp/acme_labels.txt testx16.asm
# Need F12 to enter the debugger
#grep testscreen temp/acme_labels.txt
Expand Down
8 changes: 7 additions & 1 deletion make.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2086,11 +2086,17 @@ def build_zip(storyname, diskimage_filename, config_data, vmem_data,
# create folder if needed, and clear old contents, if any
foldername = "#{$target}_#{storyname}"
FileUtils.rm_rf(foldername)
FileUtils.rm_rf(foldername+".zip")
FileUtils.mkdir_p(foldername)

# Add terp and story file
FileUtils.cp($ozmoo_file, foldername+"/"+storyname)
FileUtils.cp($story_file, foldername+"/"+storyname+".dat")
FileUtils.cp($story_file, foldername+"/storyfile")

# Create the zip file
command = "zip -r #{foldername}.zip #{foldername}"
puts command if $verbose
system(command)

# Add bootfile + terp + preloaded vmem blocks file to disk
# if add_boot_file(diskfilename, diskimage_filename) != true
Expand Down

0 comments on commit 242587a

Please sign in to comment.