File tree Expand file tree Collapse file tree 2 files changed +17
-6
lines changed Expand file tree Collapse file tree 2 files changed +17
-6
lines changed Original file line number Diff line number Diff line change 13
13
# Download OSGeo4W packages
14
14
#
15
15
16
+ BEGIN {
17
+ # ignore requireAdministrator execution level while producing the
18
+ # uninstaller
19
+ $ENV {" __COMPAT_LAYER" } = ' RUNASINVOKER' ;
20
+ }
21
+
16
22
use strict;
17
23
use warnings;
18
24
use Getopt::Long;
@@ -448,16 +454,18 @@ sub getDeps {
448
454
449
455
my $run ;
450
456
my $instdest ;
451
- unless ($^O =~ / win/i ) {
457
+
458
+ if ($^O eq " cygwin" ) {
459
+ $run = " cygstart " ;
460
+ $instdest = ` cygpath -w \$ PWD` ;
461
+ } else {
452
462
$run = " wine " ;
453
463
$instdest = ` winepath -w \$ PWD` ;
454
- $instdest =~ s /\s +$// ;
455
- $instdest =~ s /\\ / \\\\ / g ;
456
- } else {
457
- $run = " " ;
458
- $instdest = " ." ;
459
464
}
460
465
466
+ $instdest =~ s /\s +$// ;
467
+ $instdest =~ s /\\ / \\\\ / g ;
468
+
461
469
462
470
my $args = " " ;
463
471
$args .= " -V$verbose " ;
@@ -498,7 +506,9 @@ sub sign {
498
506
die " makeuinst.exe not created" unless -f " makeuinst.exe" ;
499
507
500
508
unlink " uninstall.exe" ;
509
+ chmod 0755, " makeuinst.exe" ;
501
510
system " ${run} makeuinst.exe" ;
511
+ sleep 5;
502
512
die " uninstall.exe not created" unless -f " uninstall.exe" ;
503
513
unlink " makeuinst.exe" ;
504
514
Original file line number Diff line number Diff line change @@ -7101,6 +7101,7 @@ tyrranies:tyrannies
7101
7101
tyrrany:tyranny
7102
7102
ubiquitious:ubiquitous
7103
7103
ublisher:publisher
7104
+ updat:update
7104
7105
udpate:update
7105
7106
udpated:updated
7106
7107
udpates:updates
You can’t perform that action at this time.
0 commit comments