Skip to content

Commit

Permalink
Implement --open for XCode
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Apr 15, 2024
1 parent 406acec commit c9c578e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions kmake/src/Exporters/XCodeExporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Project } from 'kmake/Project';
import * as Proj from 'kmake/Project';
import * as fs from 'kmake/fsextra';
import * as path from 'path';
import * as child_process from 'child_process';
import * as crypto from 'crypto';

function uuidv4(): string {
Expand Down Expand Up @@ -179,6 +180,10 @@ export class XCodeExporter extends Exporter {
this.closeFile();
}

open(project: Project, to: string) {
child_process.spawn('open', [path.resolve(to, project.getSafeName() + '.xcodeproj')], {detached: true, shell: true});
}

async exportSolution(project: Project, from: string, to: string, platform: string, vrApi: any, options: any) {
const xdir = path.resolve(to, project.getSafeName() + '.xcodeproj');
fs.ensureDirSync(xdir);
Expand Down
4 changes: 4 additions & 0 deletions lib/kmake/Exporters/XCodeExporter.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/kmake/Exporters/XCodeExporter.js.map

Large diffs are not rendered by default.

0 comments on commit c9c578e

Please sign in to comment.