-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TIMOB-23529] Build: Replace scons and python with node scripts #8071
Conversation
…s ins erieis to avoid odd errors with unzip on build machine. Fix up package command to filter list of platforms against list for target OS
@cb1kenobi Hey Chris, looks like this PR is finally set to be reviewed. Thanks! |
this.moduleApiVersion = moduleApiVersion; | ||
this.gitHash = gitHash; | ||
var date = new Date(); | ||
this.timestamp = '' + (date.getMonth() + 1) + '/' + date.getDate() + '/' + (date.getYear()) + ' ' + date.getHours() + ':' + (date.getMinutes()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use date.getFullYear()
.
Also date.getMinutes()
returns an unpadded number, so if the minutes is less than 10, it will not pad with a zero resulting in a time such as 17:2
instead of 17:02
.
Perhaps it would be easiest to just do this:
this.timestamp = date.toLocaleDateString() + ' ' + date.toLocaleTimeString();
This will produce 6/23/2016 5:24:14 PM
. If you want a 24 hour version, then you need to do:
this.timestamp = date.toLocaleDateString() + ' ' + date.toTimeString().replace(/^(\d+:\d+)(.*)$/, '$1');
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All right, just pushed that plus the left pad of hours and minutes with '0'.
…locally. Add section to README.md on building locally now that scons is gone
APPROVED |
JIRA: https://jira.appcelerator.org/browse/TIMOB-23529
I'd like to replace our build scripts in-place, so I'd prefer to get the build working on our PR build and then hopefully merging will just magically replace our build system.
To do so, I still need to take our existing build steps that run for titanium_mobile_master and migrate them into a bash script that lives in the repo itself - so that this PR can then overwrite part of that script to run our new node scripts instead of scons.
This PR does not yet replace the downloading of windows for builds, or uploading the built zips for all OSes up to S3. It also assumes you have Xcode/Android SDK/Android NDK, etc installed (i.e. I didn't write a script to fetch and set up pre-requisites yet).