Skip to content

Commit

Permalink
Change cp to ln -s.
Browse files Browse the repository at this point in the history
  • Loading branch information
ippee committed Jul 16, 2021
1 parent a15a079 commit 7b624f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ cd ./tool/libclipboard/
cargo build

# on Windows
cp ./target/debug/libclipboard.dll ../../
New-Item -Type SymbolicLink ../../libclipboard.dll -Value ./target/debug/libclipboard.dll

# on macOS/Linux
bash ./copy_lib.sh
Expand Down
4 changes: 2 additions & 2 deletions copy_lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ dylib="./target/debug/liblibclipboard.dylib"
so="./target/debug/liblibclipboard.so"

if [ -e $dylib ]; then
cp $dylib ../../libclipboard.dylib
ln -s $dylib ../../libclipboard.dylib
fi

if [ -e $so ]; then
cp $so ../../libclipboard.so
ln -s $so ../../libclipboard.so
fi

0 comments on commit 7b624f5

Please sign in to comment.