add release target for linux
This commit is contained in:
parent
7fa1a67ef3
commit
b07adbf181
6 changed files with 938 additions and 1 deletions
44
scripts/release-lin.sh
Executable file
44
scripts/release-lin.sh
Executable file
|
|
@ -0,0 +1,44 @@
|
|||
#!/bin/bash -e
|
||||
#
|
||||
# libkissinference - an inference libary for kiss networks
|
||||
# Copyright (C) 2024 Carl Philipp Klemm <carl@uvos.xyz>
|
||||
#
|
||||
# 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 <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
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-linux-$SYSTEMPROC-$VERSION
|
||||
|
||||
rm $BINARYDIR/packaged/$ZIPNAME.zip || true
|
||||
cd $BINARYDIR
|
||||
install -d $RELDIRECTORY
|
||||
cp libeismultiplexer.so $RELDIRECTORY
|
||||
cp libeismultiplexer_static.a $RELDIRECTORY
|
||||
cp $(readlink -f $ROOTPATH/usr/lib/libusb-1.0.so.0) $RELDIRECTORY/libusb-1.0.so.0
|
||||
cp eismultiplexer_cli $RELDIRECTORY
|
||||
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
|
||||
48
scripts/release-win.sh
Executable file
48
scripts/release-win.sh
Executable file
|
|
@ -0,0 +1,48 @@
|
|||
#!/bin/bash -e
|
||||
#
|
||||
# libkissinference - an inference libary for kiss networks
|
||||
# Copyright (C) 2024 Carl Philipp Klemm <carl@uvos.xyz>
|
||||
#
|
||||
# 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 <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue