Skip to content

Commit

Permalink
Fixed bloat when building multiple package types. Also bumped the
Browse files Browse the repository at this point in the history
version and updated the screenshot.
  • Loading branch information
stanfieldr committed May 18, 2016
1 parent 330b6d3 commit 6c1af99
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
14 changes: 9 additions & 5 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
const os = require('os');

// Possible values: x64, ia32
let arch = 'ia32' || os.arch();

module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);

Expand All @@ -8,10 +11,11 @@ module.exports = function(grunt) {
build: {
options: {
platform: os.platform(),
arch: os.arch(),
arch: arch,
dir: '.',
out: './build',
icon: './assets/tray/skype.png',
ignore: ['build', 'dist'],
overwrite: true
}
}
Expand All @@ -22,10 +26,10 @@ module.exports = function(grunt) {
options: {
bin: './Ghetto Skype',
icon: "./assets/tray/skype.png",
arch: os.arch() === 'x64' ? 'x86_64' : 'x86'
arch: arch === 'x64' ? 'x86_64' : 'x86'
},

src: 'build/Ghetto Skype-linux-' + os.arch() + '/',
src: 'build/Ghetto Skype-linux-' + arch + '/',
dest: 'dist/'
}
},
Expand All @@ -35,13 +39,13 @@ module.exports = function(grunt) {
options: {
bin: './Ghetto Skype',
icon: "./assets/tray/skype.png",
arch: os.arch() === 'x64' ? 'amd64' : 'i386',
arch: arch === 'x64' ? 'amd64' : 'i386',
depends: [
'libappindicator1'
]
},

src: 'build/Ghetto Skype-linux-' + os.arch() + '/',
src: 'build/Ghetto Skype-linux-' + arch + '/',
dest: 'dist/'
}
}
Expand Down
Binary file modified assets/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ghetto-skype",
"version": "1.2.1",
"version": "1.2.2",
"productName": "Ghetto Skype",
"description": "Web Skype + Tray Icon + Notifications",
"private": true,
Expand Down

0 comments on commit 6c1af99

Please sign in to comment.