-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[autorelease] Add
argv0
argument to Application()
.
This allows writing downstream code like: export const run_yosys = yosys.run.bind(yosys);
- Loading branch information
1 parent
eff459a
commit efab3a8
Showing
9 changed files
with
25 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
import { execFileSync } from 'child_process'; | ||
import { readFileSync, writeFileSync } from 'fs'; | ||
|
||
const revList = execFileSync('git', ['rev-list', 'HEAD'], {encoding: 'utf-8'}).split('\n'); | ||
const packageJSON = JSON.parse(readFileSync('package-in.json', {encoding: 'utf-8'})); | ||
packageJSON.version = `1.0.${revList.length - 2}`; | ||
const revCount = execFileSync('git', ['rev-list', 'HEAD'], {encoding: 'utf-8'}).split('\n').length - 1; | ||
|
||
let version = `2.0.${revCount - 1}`; | ||
if (!['true', '1', 'yes'].includes(process.env['RELEASE_BRANCH'])) | ||
packageJSON.version += '-dev'; | ||
console.log(`version ${packageJSON.version}`); | ||
version += '-dev'; | ||
console.log(`version ${version}`); | ||
|
||
const packageJSON = JSON.parse(readFileSync('package-in.json', {encoding: 'utf-8'})); | ||
packageJSON.version = version; | ||
writeFileSync('package.json', JSON.stringify(packageJSON)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/bin/sh -e | ||
|
||
cd $(dirname $0) | ||
|
||
cd yowasp_runtime_test | ||
./build.sh | ||
cd $(dirname $0)/yowasp_runtime_test | ||
npm install | ||
npm run pack | ||
npm run transpile | ||
npm run test |
This file was deleted.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters