Login
Remember
IF Answers
Ask a Question

# How do I build an I7 project from the command line in Windows?

0 votes
114 views
asked Mar 23 in Authoring by AndrewS (250 points)
edited Mar 27 by Alex
Apparently it's easy in Linux, but this bugged me for a long time, so I'll spell it out.

- third-party
- inform7

## 1 Answer

+1 vote
answered Mar 23 by AndrewS (250 points)
This is a hard-coded answer, but this is the rough syntax. You can adjust it for flexibility (e.g. sa to something more general. This worked for when I build a project of my own.)
if "%HOME% EQU "" (
set HOME=c:\games\inform\cmdbuild
)
if NOT EXIST %HOME% (
mkdir %HOME%
)
cd c:\games\inform\sa.inform\Build
echo RELEASE
"C:\Program Files (x86)\Inform 7\Compilers\ni" -release -rules "C:\Program Files (x86)\Inform 7\Inform7\Extensions" -package "C:\games\inform\sa.inform" -extension=ulx
"C:\Program Files (x86)\Inform 7\Compilers\inform-632" -kw~S~DG +include_path=..\Source,.\ auto.inf output.ulx
"C:\Program Files (x86)\Inform 7\Compilers\cblorb" -windows ..\Release.blurb output-release.gblorb
echo DEBUG
cd c:\games\inform\sa.inform\Build
"C:\Program Files (x86)\Inform 7\Compilers\ni" -rules "C:\Program Files (x86)\Inform 7\Inform7\Extensions" -package "C:\games\inform\sa.inform" -extension=ulx
"C:\Program Files (x86)\Inform 7\Compilers\inform-632" -kwSDG +include_path=..\Source,.\ auto.inf output.ulx
"C:\Program Files (x86)\Inform 7\Compilers\cblorb" -windows ..\Release.blurb output-debug.gblorb
Note that if you tinker with Release.blurb, you can change the output name, but that would require PERL.

## Related questions

- The inform IDE is only so flexible for text editing. Do I have to use it?
- How do you avoid an extra line break when refreshing a window with Flexible Windows (Inform 7)?
- When using hyperlinks, how do you make the command appear appear next to the > instead of on the following line? (Inform 7)
- How do I move an item I have more of in the world (since it's a kind of thing)?
- Using the Flexible Windows extension, how can I depict a scaled image in my graphics window?

...