#!/bin/bash -e # # libkissinference - an inference libary for kiss networks # Copyright (C) 2024 Carl Philipp Klemm # # This file is part of libkissinference. # # libkissinference is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # libkissinference is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public License # along with libkissinference. If not, see . # PROJECTNAME=@PROJECT_NAME@ SYSTEMPROC=@CMAKE_SYSTEM_PROCESSOR@ ROOTPATH=@CMAKE_FIND_ROOT_PATH@ VERSION="@CMAKE_PROJECT_VERSION_MAJOR@.@CMAKE_PROJECT_VERSION_MINOR@.@CMAKE_PROJECT_VERSION_PATCH@" BINARYDIR="@CMAKE_CURRENT_BINARY_DIR@" SRCDIR="@CMAKE_CURRENT_SOURCE_DIR@" RELDIRECTORY="$BINARYDIR/packaged/$VERSION/release" ZIPNAME=$PROJECTNAME-win-$SYSTEMPROC-$VERSION rm $BINARYDIR/packaged/$ZIPNAME.zip || true cd $BINARYDIR install -d $RELDIRECTORY cp libeismultiplexer.dll $RELDIRECTORY cp libeismultiplexer_static.a $RELDIRECTORY cp libeismultiplexer.dll.a $RELDIRECTORY cp $ROOTPATH/bin/libwinpthread-1.dll $RELDIRECTORY cp $ROOTPATH/bin/libusb-1.0.dll $RELDIRECTORY cp $ROOTPATH/bin/libssp-0.dll $RELDIRECTORY cp eismultiplexer_cli.exe $RELDIRECTORY cp -r $SRCDIR/EisMultiplexerWinDriver $RELDIRECTORY/driver mkdir $RELDIRECTORY/include || true cp $SRCDIR/eismultiplexer.h $RELDIRECTORY/include cp $SRCDIR/gpl-3.0.txt $SRCDIR/lgpl-3.0.txt $RELDIRECTORY cp $SRCDIR/README.md $RELDIRECTORY cd $RELDIRECTORY/.. rm $BINARYDIR/packaged/$ZIPNAME.zip || true zip -r $BINARYDIR/packaged/$ZIPNAME.zip release