Skip to content

Commit

Permalink
fix broken file links in hint
Browse files Browse the repository at this point in the history
  • Loading branch information
be5invis committed Sep 26, 2017
1 parent d3152f8 commit 30298db
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions bddy.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ module.exports = function(ctx, forany, argv, bddy) {
const [$1] = await this.need(`sources/shs/${target.name}.otf`);
const tmpOTD = `${target.dir}/${target.name}.otd`;
await runBuildTask.call(this, "build-punct/build.js", { main: $1, o: tmpOTD });
await this.run("otfccbuild", tmpOTD, "-o", target);
await this.run("otfccbuild", tmpOTD, "-o", target, "-q");
await this.rm(tmpOTD);
});

Expand Down Expand Up @@ -174,7 +174,7 @@ module.exports = function(ctx, forany, argv, bddy) {
const [$1] = await this.need(`sources/shs/${target.name}.otf`);
const tmpOTD = `${target.dir}/${target.name}.otd`;
await runBuildTask.call(this, "build-kanji/build.js", { main: $1, o: tmpOTD });
await this.run("otfccbuild", tmpOTD, "-o", target);
await this.run("otfccbuild", tmpOTD, "-o", target, "-q");
await this.rm(tmpOTD);
});

Expand Down
2 changes: 1 addition & 1 deletion hint/support/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

# Segmentations when hinting
# 分段数,hint 部分
JHINT = 1
JHINT = 128

CVTFILE = build/_CVT.mk
FPGMFILE = build/_FPGM.mk
Expand Down
10 changes: 6 additions & 4 deletions hint/top.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ function idhParam(config) {
a.push(`XX_IDH_INSTANCE=ideohint`);
} else {
if (os.platform() === "win32") {
a.push(`XX_IDH_INSTANCE=${path.join(entryDir, "node_modules/.bin/ideohint.cmd")}`);
a.push(`XX_IDH_INSTANCE=${path.join(entryDir, "../node_modules/.bin/ideohint.cmd")}`);
} else {
a.push(`XX_IDH_INSTANCE=${path.join(entryDir, "node_modules/.bin/ideohint")}`);
a.push(`XX_IDH_INSTANCE=${path.join(entryDir, "../node_modules/.bin/ideohint")}`);
}
}
/*
Expand All @@ -73,9 +73,11 @@ function idhParam(config) {
}

if (os.platform() === "win32") {
a.push(`XX_TTCIZE_INSTANCE=${path.join(entryDir, "node_modules/.bin/otfcc-ttcize.cmd")}`);
a.push(
`XX_TTCIZE_INSTANCE=${path.join(entryDir, "../node_modules/.bin/otfcc-ttcize.cmd")}`
);
} else {
a.push(`XX_TTCIZE_INSTANCE=${path.join(entryDir, "node_modules/.bin/otfcc-ttcize")}`);
a.push(`XX_TTCIZE_INSTANCE=${path.join(entryDir, "../node_modules/.bin/otfcc-ttcize")}`);
}
return a;
}
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"fs-extra": "^3.0.1",
"glob": "^7.1.2",
"glob-promise": "^3.1.0",
"ideohint": "^0.99.4",
"inquirer": "^3.2.3",
"inquirer-file-path": "^1.0.0",
"megaminx": "^0.4.3",
Expand Down

0 comments on commit 30298db

Please sign in to comment.