Skip to content

Commit f737483

Browse files
committed
Fix a couple small bugs in the build process
1 parent 24d286e commit f737483

File tree

3 files changed

+18
-8
lines changed

3 files changed

+18
-8
lines changed

app/scripts/libs/iceplugmanager.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,16 +203,16 @@ var IcePlugManager = function () {
203203

204204
newWin.on('loaded', function () {
205205
let filter = ['WIN32', 'LINUX', 'DARWIN', 'VERSION', 'LOGFILE', 'BUILD_DIR'];
206-
let env_filtered = {};
206+
let envFiltered = {};
207207
for (let prop in _this.env) {
208208
if (filter.indexOf(prop) > -1) {
209-
env_filtered[prop] = _this.env[prop];
209+
envFiltered[prop] = _this.env[prop];
210210
}
211211
}
212-
// this.window.postMessage({type:'ice-plugin-message', env:env_filtered});
212+
// this.window.postMessage({type:'ice-plugin-message', env:envFiltered});
213213

214214
if (typeof this.window.onLoad !== 'undefined') {
215-
this.window.onLoad(env_filtered);
215+
this.window.onLoad(envFiltered);
216216
}
217217
});
218218

gruntfile.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@
146146
options: {
147147
apioMin: '<%=pkg.apio.min%>',
148148
apioMax: '<%=pkg.apio.max%>',
149+
apioBranch: '<%=pkg.apio.branch%>',
149150
buildDir: 'dist/',
150151
extraPackages: '<%=pkg.apio.extras%>',
151152
platforms: platforms

tasks/toolchain_builder.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,19 @@ ToolchainBuilder.prototype.downloadApio = function () {
142142
self.emit('log', '> Download apio');
143143
return new Promise(function(resolve, reject) {
144144
var versionRange = '">=' + self.options.apioMin + ',<' + self.options.apioMax + '"';
145-
var command = [
146-
self.options.venvPip, 'download', '--dest', self.options.apioDir,
147-
'apio[' + self.options.extraPackages.toString() + ']' + versionRange
148-
];
145+
var command = [];
146+
if(self.options.apioBranch === "develop") {
147+
command = [
148+
self.options.venvPip, 'download', '--dest', self.options.apioDir,
149+
'git+https://github.com/FPGAwars/apio.git@develop#egg=apio[' + self.options.extraPackages.toString() + ']' + versionRange
150+
];
151+
}
152+
else {
153+
command = [
154+
self.options.venvPip, 'download', '--dest', self.options.apioDir,
155+
'apio[' + self.options.extraPackages.toString() + ']' + versionRange
156+
];
157+
}
149158
childProcess.exec(command.join(' '),
150159
function(error/*, stdout, stderr*/) {
151160
if (error) { reject(error); }

0 commit comments

Comments
 (0)