2020-02-24 01:49:56 +02:00
|
|
|
[InblorbSkill::] Inblorb Skill.
|
|
|
|
|
2020-03-30 14:23:06 +03:00
|
|
|
The skill of packaging a story file and associated resources into a blorb.
|
2020-02-24 01:49:56 +02:00
|
|
|
|
|
|
|
@ =
|
|
|
|
build_skill *package_using_inblorb_skill = NULL;
|
|
|
|
|
|
|
|
void InblorbSkill::create(void) {
|
2020-03-30 14:23:06 +03:00
|
|
|
package_using_inblorb_skill =
|
|
|
|
BuildSteps::new_skill(I"package using inblorb");
|
|
|
|
METHOD_ADD(package_using_inblorb_skill, BUILD_SKILL_COMMAND_MTID,
|
|
|
|
InblorbSkill::inblorb_via_shell);
|
2020-02-24 01:49:56 +02:00
|
|
|
}
|
|
|
|
|
2020-03-30 14:23:06 +03:00
|
|
|
int InblorbSkill::inblorb_via_shell(build_skill *skill, build_step *S,
|
|
|
|
text_stream *command, build_methodology *BM) {
|
2020-02-29 12:12:46 +02:00
|
|
|
inform_project *project = ProjectBundleManager::from_copy(S->associated_copy);
|
|
|
|
if (project == NULL) project = ProjectFileManager::from_copy(S->associated_copy);
|
|
|
|
if (project == NULL) internal_error("no project");
|
|
|
|
|
2020-03-30 14:23:06 +03:00
|
|
|
Shell::quote_file(command, BM->to_inblorb);
|
2020-04-16 01:49:59 +03:00
|
|
|
filename *blurb = Filenames::in(S->associated_copy->location_if_path,
|
2020-03-30 14:23:06 +03:00
|
|
|
I"Release.blurb");
|
2020-02-29 12:12:46 +02:00
|
|
|
Shell::quote_file(command, blurb);
|
2020-03-30 14:23:06 +03:00
|
|
|
Shell::quote_file(command, S->vertex->as_file);
|
2020-02-24 01:49:56 +02:00
|
|
|
return TRUE;
|
|
|
|
}
|