Skip to content

Commit

Permalink
In portable change zip to tar and add libhidapi-hidraw.so.0 symlink
Browse files Browse the repository at this point in the history
  • Loading branch information
nkh-lab committed Sep 11, 2022
1 parent 3633ccc commit 6437c93
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ cmake -G "Visual Studio 17 2022" -A Win32 ..
cmake --build . --config Release
```
### Portable
To be able to use the output binaries outside of the project, use the appropriate scripts from the [tools](tools) folder to build the portable package ([build/portable](build/portable) and its archive [build/usbrelaymodule-portable.zip](build/usbrelaymodule-portable.zip)), for example for Ubuntu:
To be able to use the output binaries outside of the project, use the appropriate scripts from the [tools](tools) folder to build the portable package ([build/portable](build/portable) and its archive [build/usbrelaymodule-portable.tar.gz](build/usbrelaymodule-portable.tar.gz)), for example for Ubuntu:
```
./tools/build-portable-linux.sh
```
Expand Down
6 changes: 5 additions & 1 deletion tools/build-portable-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ DIR=$(cd "$(dirname "$0")" && pwd)

PROJECT_ROOT=$(cd $DIR/.. && pwd)
PORTABLE_DIR_REL_PATH="build/portable"
PORTABLE_ARCHIVE_NAME="usbrelaymodule-portable"

rm -rf build/
mkdir build && cd build
Expand All @@ -21,4 +22,7 @@ cp external/hidapi/linux/.libs/libhidapi-hidraw.so $PORTABLE_DIR_REL_PATH

cd $PORTABLE_DIR_REL_PATH

zip -r ../usbrelaymodule-portable.zip *
ln -s libhidapi-hidraw.so libhidapi-hidraw.so.0

#zip -r ../$PORTABLE_ARCHIVE_NAME.zip *
tar -czf ../$PORTABLE_ARCHIVE_NAME.tar.gz *

0 comments on commit 6437c93

Please # to comment.