Alien-Electron
view release on metacpan or search on metacpan
ElectronModuleBuild.pm view on Meta::CPAN
sub extract_zip_file {
my $self = shift;
system("mkdir -p blib/lib/auto/share/dist/Alien-Electron/"); ## FIXME: portability
if ($^O =~ /darwin/i) {
## Archive::Extract appears to break Electron.App - maybe doesn't extract some meta-data or something?
system("unzip -oqq $electron_archive -d blib/lib/auto/share/dist/Alien-Electron/");
} else {
unzip($electron_archive, 'blib/lib/auto/share/dist/Alien-Electron/');
chmod(0755, 'blib/lib/auto/share/dist/Alien-Electron/electron');
}
}
## The following unzip() routine is by Daniel S. Sterling (from https://gist.github.com/eqhmcow/5389877)
## "licensed under GPL 2 and/or Artistic license; aka free perl software"
=pod
( run in 0.352 second using v1.01-cache-2.11-cpan-496ff517765 )