@holisticon/nativescript-buildhelper
Advanced tools
Comparing version 0.1.0-develop-7 to 0.1.0-develop-8
@@ -13,3 +13,3 @@ #!/usr/bin/env node | ||
var debugLog = util.debuglog(DEBUG_ENV); | ||
var xmlParser = new xml2js.Parser(), builder = new xml2js.Builder(), manifestPath = 'app/App_Resources/Android/AndroidManifest.xml', plistPath = 'app/App_Resources/iOS/Info.plist', buildNo = ARGS[0] || process.env['BUILD_NUMBER'] || 1, packageJSON = require(path.resolve('.', 'package.json')); | ||
var xmlParser = new xml2js.Parser(), builder = new xml2js.Builder(), manifestPath = 'app/App_Resources/Android/AndroidManifest.xml', plistPath = 'app/App_Resources/iOS/Info.plist', buildNo = ARGS[0] || process.env['BUILD_NUMBER'] || 1, packageJSON = require(path.resolve('.', 'package.json')), version = packageJSON.version; | ||
console.log('Updating with build number: ' + buildNo); | ||
@@ -21,3 +21,3 @@ fs.stat(manifestPath, function (error) { | ||
xmlParser.parseString(manifestXML_1, function (err, manifestData) { | ||
var appId = packageJSON.nativescript.id, version = packageJSON.version; | ||
var appId = packageJSON.nativescript.id; | ||
manifestData.manifest.$['android:versionCode'] = buildNo; | ||
@@ -44,2 +44,7 @@ manifestData.manifest.$['android:versionName'] = version; | ||
}); | ||
child_process_1.exec('/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString ' + version + '" ' + path.resolve('.', plistPath), function (err) { | ||
if (err) { | ||
throw err; | ||
} | ||
}); | ||
} | ||
@@ -46,0 +51,0 @@ else { |
{ | ||
"name": "@holisticon/nativescript-buildhelper", | ||
"version": "0.1.0-develop-7", | ||
"version": "0.1.0-develop-8", | ||
"description": "Basic NPM package for helping on automate releasing of NativeScript Apps", | ||
@@ -5,0 +5,0 @@ "bin": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11126
132
3