Commit 4deb0403867bff6747a05cc62672e69a7a10e407

Authored by Perry Werneck
1 parent 83a0fbc0

Fixing windows installer default options.

Showing 2 changed files with 23 additions and 16 deletions   Show diff stats
win/pack.sh
... ... @@ -561,7 +561,7 @@ copy_install_file() {
561 561 TARGET_PATH="/${PRODUCT_NAME}/stable/${ARCH}"
562 562 fi
563 563  
564   - if [ -d ~/public_html ]; then
  564 + if [ -d ~/public_html/win/${PRODUCT_NAME} ]; then
565 565 mkdir -p ~/public_html/win/${TARGET_PATH}
566 566 ln -f -v "${FILENAME}" ~/public_html/win/${TARGET_PATH}
567 567 if [ "$?" != "0" ]; then
... ... @@ -569,7 +569,7 @@ copy_install_file() {
569 569 fi
570 570 fi
571 571  
572   - if [ ! -z "${XDG_PUBLICSHARE_DIR}" ] && [ -d "${XDG_PUBLICSHARE_DIR}" ]; then
  572 + if [ ! -z "${XDG_PUBLICSHARE_DIR}" ] && [ -d "${XDG_PUBLICSHARE_DIR}/${PRODUCT_NAME}" ]; then
573 573  
574 574 mkdir -p "${XDG_PUBLICSHARE_DIR}/${TARGET_PATH}"
575 575 if [ "$?" != "0" ]; then
... ... @@ -766,6 +766,10 @@ do
766 766 rm -fr ~/public_html/win/${PRODUCT_NAME}/{x86_32,x86_64}
767 767 fi
768 768  
  769 + if [ ! -z "${XDG_PUBLICSHARE_DIR}" ] && [ -d "${XDG_PUBLICSHARE_DIR}/${PRODUCT_NAME}" ]; then
  770 + rm -fr ${XDG_PUBLICSHARE_DIR}/${PRODUCT_NAME}/{x86_32,x86_64}
  771 + fi
  772 +
769 773 ;;
770 774  
771 775 EXTRA-PACKAGES)
... ... @@ -846,7 +850,7 @@ do
846 850 fi
847 851  
848 852 if [ -d ~/public_html/win/${PRODUCT_NAME} ]; then
849   - echo " --clear Replace the contents of ~/public_html/win/${PRODUCT_NAME}/{x86_32,x86_64}"
  853 + echo " --clear Replace the contents of public folders"
850 854 fi
851 855  
852 856 echo ""
... ...
win/pw3270.nsi.in
... ... @@ -212,7 +212,7 @@ SubSection "@PRODUCT_NAME@" SecMain
212 212  
213 213 SubSection "Plugins" SecPLugin
214 214  
215   - Section /o "Remote control" IPCPlugin
  215 + Section "Remote control" IPCPlugin
216 216  
217 217 setOutPath $INSTDIR
218 218  
... ... @@ -235,7 +235,7 @@ SubSection "@PRODUCT_NAME@" SecMain
235 235 SubSection "Extra modules" Languages
236 236  
237 237 !ifdef WITHLIBHLLAPI
238   - Section /o "HLLAPI" HLLAPIBinding
  238 + Section "HLLAPI" HLLAPIBinding
239 239  
240 240 ${@NSISREDIR@}
241 241  
... ... @@ -309,7 +309,7 @@ SubSectionEnd
309 309  
310 310  
311 311 !ifdef WITHGTK
312   -Section /o "GTK+ Runtime" SecGTK
  312 +Section "GTK+ Runtime" SecGTK
313 313  
314 314 setOutPath $INSTDIR
315 315 file /r "runtime\*.*"
... ... @@ -387,16 +387,16 @@ Function .onInit
387 387 ClearErrors
388 388 ${GetOptions} $R0 /SDK= $0
389 389  
390   - ${if} $0 == "NO"
  390 + ${if} $0 == "YES"
391 391  
392 392 SectionGetFlags ${SDK} $0
393   - IntOp $0 $0 & ${SECTION_OFF}
  393 + IntOp $0 $0 | ${SF_SELECTED}
394 394 SectionSetFlags ${SDK} $0
395 395  
396 396 ${else}
397 397  
398 398 SectionGetFlags ${SDK} $0
399   - IntOp $0 $0 | ${SF_SELECTED}
  399 + IntOp $0 $0 & ${SECTION_OFF}
400 400 SectionSetFlags ${SDK} $0
401 401  
402 402 ${EndIf}
... ... @@ -413,13 +413,8 @@ Function .onInit
413 413 ClearErrors
414 414 ${GetOptions} $R0 /DOTNET= $0
415 415  
416   - ${if} $0 == "NO"
417   -
418   - SectionGetFlags ${DOTNET} $0
419   - IntOp $0 $0 & ${SECTION_OFF}
420   - SectionSetFlags ${DOTNET} $0
421   -
422   - ${else}
  416 + # Default = NO
  417 + ${if} $0 == "YES"
423 418  
424 419 SectionGetFlags ${DOTNET} $0
425 420 IntOp $0 $0 | ${SF_SELECTED}
... ... @@ -429,6 +424,12 @@ Function .onInit
429 424 IntOp $0 $0 | ${SF_SELECTED}
430 425 SectionSetFlags ${IPCPlugin} $0
431 426  
  427 + ${else}
  428 +
  429 + SectionGetFlags ${DOTNET} $0
  430 + IntOp $0 $0 & ${SECTION_OFF}
  431 + SectionSetFlags ${DOTNET} $0
  432 +
432 433 ${EndIf}
433 434  
434 435 Pop $0
... ... @@ -444,6 +445,7 @@ Function .onInit
444 445 ClearErrors
445 446 ${GetOptions} $R0 /HLLAPI= $0
446 447  
  448 + # Default = YES
447 449 ${if} $0 == "NO"
448 450  
449 451 SectionGetFlags ${HLLAPIBinding} $0
... ... @@ -460,6 +462,7 @@ Function .onInit
460 462 IntOp $0 $0 | ${SF_SELECTED}
461 463 SectionSetFlags ${IPCPlugin} $0
462 464  
  465 +
463 466 ${EndIf}
464 467  
465 468 Pop $0
... ...