> was a quick lunch time fix.  Has been committed and pushed.  I think my
> cygwin build system is still working although I think I'd like to move
> towards cross building from linux.   Someone updated PCB to be able to
> do this and I understand it is working fairly smoothly.

That was me.  ftp://ftp.delorie.com/pub/geda-windows/snapshots/

I build gaf, gerbv, and pcb every night.  I package up the third-party
dependencies and pcb into installers, but haven't done gerbv or gaf
yet.  If you want to send me .nsi files for them (as if it were run in
the toplevel of the build zip) I can drop them in.  The pcb.nsi.in (I
run it through sed to fix up snapshot names etc) one looks like this:

----------------------------------------------------------------------
;; Installer script for PCB built under Minipack.  Assumes you're in
;; the "result" directory
;;
;; DJ Delorie <d...@delorie.com>

!include "MUI.nsh"
!include "../../registerExtension.nsh"

Name "PCB @pcb_version@"
!define MUI_STARTMENUPAGE_DEFAULTFOLDER "gEDA"

OutFile "pcb-@pcb_version@.exe"

RequestExecutionLevel admin
InstallDir "$PROGRAMFILES\gEDA"
InstallDirRegKey HKCU "Software\gEDA" ""

Var MUI_TEMP
Var STARTMENU_FOLDER

!insertmacro MUI_PAGE_LICENSE ../../licenses.txt
!insertmacro MUI_PAGE_DIRECTORY
  
;Start Menu Folder Page Configuration
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKCU" 
!define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\gEDA" 
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder"
  
!insertmacro MUI_PAGE_STARTMENU Application $STARTMENU_FOLDER
  
!insertmacro MUI_PAGE_INSTFILES
  
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
!insertmacro MUI_LANGUAGE "English"

Section "Installer" installer
  SetShellVarContext all

  SetOutPath "$INSTDIR\bin"

  File "bin\pcb.exe"

  SetOutPath "$INSTDIR\share\pcb"
  File /a /r "share\pcb\*.*"

  SetOutPath "$INSTDIR\doc\pcb"
  File /a /r "share\doc\pcb\*.*"
  File /a /r "..\..\pcb-native\COPYING"
  File /a /r "..\..\pcb-native\AUTHORS"
  File /a /r "..\..\pcb-native\NEWS"
  File /a /r "..\..\pcb-native\README"

  ${registerExtension} "$INSTDIR\bin\pcb.exe" "" ".pcb" "PCB Layout File"
  ${registerExtension} "$INSTDIR\bin\pcb.exe" "" ".fp" "PCB Footprint File"
  WriteRegStr HKCU "Software\gEDA" "" $INSTDIR
  WriteUninstaller "$INSTDIR\Uninstall-PCB.exe"

  !insertmacro MUI_STARTMENU_WRITE_BEGIN Application
  CreateDirectory "$SMPROGRAMS\$STARTMENU_FOLDER"
  CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\Uninstall PCB 
@pcb_version@.lnk" "$INSTDIR\Uninstall-PCB.exe"
  CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\PCB HTML Manual.lnk" 
"$INSTDIR\doc\pcb\pcb.html"
  CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\PCB PDF Manual.lnk" 
"$INSTDIR\doc\pcb\pcb.pdf"
  CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\PCB Readme.lnk" 
"$INSTDIR\doc\pcb\Readme.txt"
  CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\PCB.lnk" "$INSTDIR\bin\pcb.exe" 
"" "$INSTDIR\bin\pcb.exe" 0 "" "" "PCB Printed Circuit Board Layout Editor"
  !insertmacro MUI_STARTMENU_WRITE_END

SectionEnd

Section "Uninstall" uninstall
  SetShellVarContext all

  ${unregisterExtension} ".pcb" "PCB Layout File"
  ${unregisterExtension} ".fp"  "PCB Footprint File"

  Delete "$INSTDIR\bin\pcb.exe"

  Delete "$INSTDIR\Uninstall-PCB.exe"

  RMDir /r "$INSTDIR\share\pcb"
  RMDir /r "$INSTDIR\doc\pcb"

  RMDir "$INSTDIR\bin"
  RMDir "$INSTDIR\doc"
  RMDir "$INSTDIR\share"
  RMDir "$INSTDIR"

  !insertmacro MUI_STARTMENU_GETFOLDER Application $MUI_TEMP
    
  Delete "$SMPROGRAMS\$MUI_TEMP\PCB HTML Manual.lnk"
  Delete "$SMPROGRAMS\$MUI_TEMP\PCB.lnk"
  Delete "$SMPROGRAMS\$MUI_TEMP\PCB PDF Manual.lnk"
  Delete "$SMPROGRAMS\$MUI_TEMP\PCB Readme.lnk"
  Delete "$SMPROGRAMS\$MUI_TEMP\Uninstall PCB @pcb_version@.lnk"
  
  ;Delete empty start menu parent diretories
  StrCpy $MUI_TEMP "$SMPROGRAMS\$MUI_TEMP"
 
  startMenuDeleteLoop:
        ClearErrors
    RMDir $MUI_TEMP
    GetFullPathName $MUI_TEMP "$MUI_TEMP\.."
    
    IfErrors startMenuDeleteLoopDone
  
    StrCmp $MUI_TEMP $SMPROGRAMS startMenuDeleteLoopDone startMenuDeleteLoop
  startMenuDeleteLoopDone:

  DeleteRegKey /ifempty HKCU "Software\pcb-snapshots"
SectionEnd


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Gerbv-devel mailing list
Gerbv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gerbv-devel

Reply via email to