GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

Commit 68f9cf8f authored by Arlo Breault's avatar Arlo Breault

Bump package.json to match manifest.json

Trac: 34127
parent 4312865a
...@@ -145,6 +145,12 @@ task('node', 'build the node binary', function() { ...@@ -145,6 +145,12 @@ task('node', 'build the node binary', function() {
console.log('Node prepared.'); console.log('Node prepared.');
}); });
var updateVersion = function(file, version) {
var obj = require(file)
obj.version = version;
writeFileSync(file, JSON.stringify(obj, null, 2), 'utf8');
};
task('pack-webext', 'pack the webextension for deployment', function() { task('pack-webext', 'pack the webextension for deployment', function() {
try { try {
execSync(`rm -f source.zip`); execSync(`rm -f source.zip`);
...@@ -156,9 +162,8 @@ task('pack-webext', 'pack the webextension for deployment', function() { ...@@ -156,9 +162,8 @@ task('pack-webext', 'pack the webextension for deployment', function() {
execSync(`git submodule update --remote`); execSync(`git submodule update --remote`);
var version = process.argv[3]; var version = process.argv[3];
console.log(version); console.log(version);
var manifest = require('./webext/manifest.json') updateVersion('./package.json', version);
manifest.version = version; updateVersion('./webext/manifest.json', version);
writeFileSync('./webext/manifest.json', JSON.stringify(manifest, null, 2), 'utf8');
execSync(`git commit -am "bump version to ${version}"`); execSync(`git commit -am "bump version to ${version}"`);
try { try {
execSync(`git tag webext-${version}`); execSync(`git tag webext-${version}`);
......
{ {
"name": "snowflake-pt", "name": "snowflake-pt",
"version": "0.0.0-git", "version": "0.3.0",
"description": "Snowflake is a WebRTC pluggable transport for Tor.", "description": "Snowflake is a WebRTC pluggable transport for Tor.",
"main": "build/snowflake.js", "main": "build/snowflake.js",
"directories": { "directories": {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment