Permalink
Browse files

Removed the paths to specific 10.7 and 10.8 osx binaries and kept the…

… 10.7


Closes #4
  • Loading branch information...
badunk authored and sindresorhus committed Feb 25, 2013
1 parent 0d22e68 commit a81a733f10806a0885891ec1b5ff0e69fedaa261
View
@@ -1,20 +1,13 @@
var path = require('path');
-var execSync = require('exec-sync');
if (process.platform === 'darwin') {
- var version = execSync('sw_vers -productVersion');
-
- if (/10.8/.test(version)) {
- exports.path = path.join(__dirname, '../vendor/osx/10.8', 'optipng');
- } else if (/10.7/.test(version)) {
- exports.path = path.join(__dirname, '../vendor/osx/10.7', 'optipng');
- }
+ exports.path = path.join(__dirname, '../vendor/osx', 'optipng');
} else if (process.platform === 'linux') {
- if (process.arch === 'x64') {
- exports.path = path.join(__dirname, '../vendor/linux/x64', 'optipng');
- } else {
- exports.path = path.join(__dirname, '../vendor/linux/x86', 'optipng');
- }
+ if (process.arch === 'x64') {
+ exports.path = path.join(__dirname, '../vendor/linux/x64', 'optipng');
+ } else {
+ exports.path = path.join(__dirname, '../vendor/linux/x86', 'optipng');
+ }
} else if (process.platform === 'win32') {
exports.path = path.join(__dirname, '../vendor/win32', 'optipng.exe');
} else {
View
@@ -37,8 +37,7 @@
],
"dependencies": {
"colors": "~0.6.0",
- "which": "~1.0.5",
- "exec-sync": "~0.1.5"
+ "which": "~1.0.5"
},
"devDependencies": {
"mocha": "~1.6.0"
@@ -9,7 +9,7 @@ describe('OptiPNG rebuild', function () {
it('it should rebuild the optipng binaries', function (cb) {
this.timeout(15000); // give this test time to build
var origCTime = fs.statSync(binPath).ctime;
- exec('node rebuild-optipng.js', {}, function (err) {
+ exec('node build.js', {}, function (err) {
var actualCTime = fs.statSync(binPath).ctime;
assert(actualCTime !== origCTime);
cb(err);
View
Binary file not shown.
File renamed without changes.

0 comments on commit a81a733

Please sign in to comment.