.packer.yml 1.35 KB
Newer Older
Edric Milaret's avatar
Edric Milaret committed
1
win32:
2
    type: win32
Edric Milaret's avatar
Edric Milaret committed
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
    exe_commands:
        - echo "Building Daemon"
        - git clone https://gerrit-ring.savoirfairelinux.com/ring-daemon ring-daemon
        - cd ring-daemon/contrib
        - mkdir native
        - ls
        - cd native
        - ../bootstrap --host=i686-w64-mingw32
        - make
        - cd ../..
        - ./autogen.sh
        - ./configure --host=i686-w64-mingw32 --without-dbus
        - make
        - make install
        - echo "Building LRC"
        - cd ..
        - git clone https://gerrit-ring.savoirfairelinux.com/ring-lrc ring-lrc
        - RING=`pwd`/ring-daemon
        - cd ring-lrc
        - mkdir build
        - cd build
        - cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/winBuild.cmake -DCMAKE_INSTALL_PREFIX=$RING/_win32 -DRING_BUILD_DIR=$RING/src -DENABLE_LIBWRAP=true ..
        - make
        - make install
        - cd ../..
        - echo "Building Client"
        - git clone https://gerrit-ring.savoirfairelinux.com/ring-client-windows ring-client-windows
        - cd ring-client-windows
        - mkdir build && cd build
        - export QTDIR=/usr/i686-w64-mingw32/lib/qt
        - /usr/i686-w64-mingw32/lib/qt/bin/qmake ../RingWinClient.pro -r -spec win32-g++ RING=$RING/_win32
        - make
        - make install
        - cd release
        - makensis ring.nsi
        - sudo mv ring-windows-nightly.exe /output