Alien-Electron
view release on metacpan or search on metacpan
ElectronModuleBuild.pm view on Meta::CPAN
}
## 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
L<IO::Uncompress::Unzip> works great to process zip files; but, it doesn't include a routine to actually
extract an entire zip file.
Other modules like L<Archive::Zip> include their own unzip routines, which aren't as robust as L<IO::Uncompress::Unzip>;
e.g. they don't work on zip64 archive files.
So, the following code uses L<IO::Uncompress::Unzip> to extract a zip file.
=cut
=head2 unzip
ElectronModuleBuild.pm view on Meta::CPAN
or die "Couldn't write to $destfile: $!";
while (($status = $u->read($buff)) > 0) {
$fh->write($buff);
}
$fh->close();
my $stored_time = $header->{'Time'};
utime ($stored_time, $stored_time, $destfile)
or die "Couldn't touch $destfile: $!";
}
die "Error processing $file: $!\n"
if $status < 0 ;
return;
}
1;
t/static/main.js view on Meta::CPAN
process.stdout.write("node.js is running");
process.exit(0);
( run in 0.404 second using v1.01-cache-2.11-cpan-8d75d55dd25 )