Changeset 217 in Main for trunk


Ignore:
Timestamp:
Oct 3, 2024, 4:50:16 AM (6 weeks ago)
Author:
Nishi
Message:

add a script to create specific installer

Location:
trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r197 r217  
    3333
    3434./README: ./README.tmpl ./Server/tw_version.h
    35         sed "s/@VERSION@/`grep "define TW_VERSION" Server/tw_version.h | grep -Eo '"[^\]+' | sed -E 's/^"//g'`/g" ./README.tmpl > $@
     35        sed "s/@VERSION@/`grep "define TW_VERSION" Server/tw_version.h | grep -Eo '"[^\]+' | sed 's/^"//g'`/g" ./README.tmpl > $@
    3636
    3737install: all ./Tool/genconf ./Tool/itworks
     
    4747
    4848get-version:
    49         @grep "define TW_VERSION" Server/tw_version.h | grep -Eo '"[^\]+' | sed -E 's/^"//g'
     49        @grep "define TW_VERSION" Server/tw_version.h | grep -Eo '"[^\]+' | sed 's/^"//g'
    5050
    5151clean:
  • trunk/Server/install.nsi

    r208 r217  
    4040        CreateDirectory "$INSTDIR\bin"
    4141        SetOutPath "$INSTDIR"
    42         File /oname=LICENSE.txt "../LICENSE"
     42        !cd ..
     43        File /oname=LICENSE.txt "LICENSE"
    4344        SetOutPath "$INSTDIR\modules"
    44         File "../Module/*.dll"
     45        !cd Module
     46        File "*.dll"
     47        !cd ..
    4548        SetOutPath "$INSTDIR\etc"
    4649        SetOverWrite off
    47         File /oname=tewi.conf "../generated.conf"
     50        File /oname=tewi.conf "generated.conf"
    4851        SetOutPath "$INSTDIR\www"
    49         File /oname=index.html "../itworks.html"
    50         File /oname=pbtewi.gif "../Binary/pbtewi.gif"
     52        File /oname=index.html "itworks.html"
     53        !cd Binary
     54        File /oname=pbtewi.gif "pbtewi.gif"
     55        !cd ..
    5156        SetOutPath "$INSTDIR\www\icons"
    52         File "../Icons/*.png"
     57        !cd Icons
     58        File "*.png"
     59        !cd ..
     60        !cd Server
    5361        SetOverWrite on
    5462
     
    7381Section "$(EXEC_ONLY)" SEL_EXEC
    7482        SetOutPath "$INSTDIR\bin"
    75         File "../tewi.exe"
     83        !cd ..
     84        File "tewi.exe"
     85        !cd Server
    7686        WriteINIStr $INSTDIR\install.ini uninstall service false
    7787SectionEnd
    7888
     89!ifndef ONLY_EXEC
    7990Section /o "$(SERV_TOO)" SEL_SERVICE
    8091        WriteINIStr $INSTDIR\install.ini uninstall service true
     
    8899        CreateDirectory "$INSTDIR\logs"
    89100        SetOutPath "$INSTDIR\bin"
    90         File "../tewi.exe"
    91         File /oname=tewisrv.exe "../tewi-service.exe"
     101        !cd ..
     102        File "tewi.exe"
     103        File /oname=tewisrv.exe "tewi-service.exe"
     104        !cd Server
    92105        FileOpen $9 $INSTDIR\install.bat w
    93106        FileWrite $9 '"$SYSDIR\sc.exe" delete "TewiHTTPd"$\r$\n'
     
    99112        Delete $INSTDIR\install.bat
    100113SectionEnd
     114!endif
    101115
    102116Function .onInit
     
    107121        !insertmacro StartRadioButtons $1
    108122        !insertmacro RadioButton ${SEL_EXEC}
     123        !ifndef ONLY_EXEC
    109124        !insertmacro RadioButton ${SEL_SERVICE}
     125        !endif
    110126        !insertmacro EndRadioButtons
    111127FunctionEnd
  • trunk/Server/module.c

    r215 r217  
    2929#if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__)
    3030#include <windows.h>
     31#include <direct.h>
    3132#else
    3233#include <dlfcn.h>
Note: See TracChangeset for help on using the changeset viewer.