-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mobile Qt build is deprecated add a script for Web build with WT
- Loading branch information
pvn
committed
Mar 18, 2024
1 parent
63b8149
commit d3caaa5
Showing
5 changed files
with
121 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,19 @@ | ||
#!/bin/bash | ||
|
||
if [[ "$OSTYPE" == "msys" ]]; then | ||
dir=$PWD | ||
fi | ||
|
||
mkdir -p build | ||
pushd build | ||
if [[ "$OSTYPE" == "linux-gnu"* ]]; then | ||
|
||
cmake .. -DWT_INCLUDE="$HOME/wt_install/include" -DWT_CONFIG_H="$HOME/wt_install/include" \ | ||
-DBUILD_WEB=OFF -DBUILD_DESKTOP=OFF -DBUILD_MOBILE=OFF | ||
|
||
elif [[ "$OSTYPE" == "darwin"* ]]; then | ||
|
||
cmake .. -DWT_INCLUDE="$HOME/wt_install/include" -DWT_CONFIG_H="$HOME/wt_install/include" \ | ||
-DBUILD_WEB=OFF -DBUILD_DESKTOP=OFF -DBUILD_MOBILE=OFF | ||
|
||
elif [[ "$OSTYPE" == "msys" ]]; then | ||
|
||
cmake .. --fresh -DBUILD_STATIC=OFF -DWT_INCLUDE="$dir/ext/wt-4.10.0/src" -DWT_CONFIG_H="$dir/ext/wt-4.10.0/build" \ | ||
-DBUILD_WEB=OFF -DBUILD_DESKTOP=OFF -DBUILD_MOBILE=OFF \ | ||
-DOPENSSL_ROOT_DIR="F:/nostr_client_relay/ext/openssl-3.0.5" | ||
cmake .. | ||
cmake --build . | ||
|
||
if [[ "$OSTYPE" == "msys" ]]; then | ||
pushd Debug | ||
pwd | ||
./examples.exe | ||
popd | ||
else | ||
./examples | ||
fi | ||
|
||
sleep 3 | ||
cmake --build . | ||
|
||
popd | ||
pwd | ||
exit | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,8 @@ | ||
#!/bin/bash | ||
|
||
opt=ON | ||
if [[ "$OSTYPE" == "msys" ]]; then | ||
dir=$PWD | ||
fi | ||
|
||
mkdir -p build | ||
pushd build | ||
if [[ "$OSTYPE" == "linux-gnu"* ]]; then | ||
|
||
cmake .. -DWT_INCLUDE="$HOME/wt_install/include" -DWT_CONFIG_H="$HOME/wt_install/include" \ | ||
-DBUILD_WEB=$opt -DBUILD_DESKTOP=$opt -DBUILD_MOBILE=OFF | ||
|
||
elif [[ "$OSTYPE" == "darwin"* ]]; then | ||
|
||
cmake .. -DWT_INCLUDE="$HOME/wt_install/include" -DWT_CONFIG_H="$HOME/wt_install/include" \ | ||
-DBUILD_WEB=$opt -DBUILD_DESKTOP=$opt -DBUILD_MOBILE=OFF | ||
|
||
elif [[ "$OSTYPE" == "msys" ]]; then | ||
|
||
cmake .. --fresh -DBUILD_STATIC=OFF -DWT_INCLUDE="$dir/ext/wt-4.10.0/src" -DWT_CONFIG_H="$dir/ext/wt-4.10.0/build" \ | ||
-DBUILD_WEB=$opt -DBUILD_DESKTOP=$opt -DBUILD_MOBILE=OFF \ | ||
-DOPENSSL_ROOT_DIR="F:/nostr_client_relay/ext/openssl-3.0.5" | ||
cmake .. -DBUILD_DESKTOP=ON | ||
cmake --build . | ||
|
||
fi | ||
|
||
sleep 3 | ||
cmake --build . | ||
|
||
popd | ||
pwd | ||
|
||
pushd build | ||
pushd web | ||
|
||
remote=$(git config --get remote.origin.url) | ||
echo "remote repository: $remote" | ||
sleep 2 | ||
echo "open browser http://localhost:8080" | ||
if [ "$remote" == "https://github.com/pedro-vicente/nostr_client_relay.git" ]; then | ||
export LD_LIBRARY_PATH="$HOME/github/nostr_client_relay/ext/boost_1_82_0/stage/lib":$LD_LIBRARY_PATH | ||
else | ||
export LD_LIBRARY_PATH="$HOME/git/nostr_client_relay/ext/boost_1_82_0/stage/lib":$LD_LIBRARY_PATH | ||
fi | ||
if [[ "$OSTYPE" == "msys"* ]]; then | ||
./Debug/wostro --http-address=0.0.0.0 --http-port=8080 --docroot=. | ||
else | ||
./wostro --http-address=0.0.0.0 --http-port=8080 --docroot=. | ||
fi | ||
|
||
exit | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#!/bin/bash | ||
|
||
if [[ "$OSTYPE" == "msys" ]]; then | ||
dir=$PWD | ||
fi | ||
|
||
mkdir -p build | ||
pushd build | ||
if [[ "$OSTYPE" == "linux-gnu"* ]]; then | ||
|
||
cmake .. -DBUILD_WEB=ON -DWT_INCLUDE="$HOME/wt_install/include" -DWT_CONFIG_H="$HOME/wt_install/include" | ||
|
||
elif [[ "$OSTYPE" == "darwin"* ]]; then | ||
|
||
cmake .. DBUILD_WEB=ON -DWT_INCLUDE="$HOME/wt_install/include" -DWT_CONFIG_H="$HOME/wt_install/include" | ||
|
||
elif [[ "$OSTYPE" == "msys" ]]; then | ||
|
||
cmake .. --fresh -DBUILD_WEB=ON -DWT_INCLUDE="$dir/ext/wt-4.10.0/src" -DWT_CONFIG_H="$dir/ext/wt-4.10.0/build" | ||
cmake --build . | ||
|
||
fi | ||
|
||
cmake --build . | ||
|
||
popd | ||
pwd | ||
|
||
pushd build | ||
pushd web | ||
|
||
remote=$(git config --get remote.origin.url) | ||
echo "remote repository: $remote" | ||
sleep 2 | ||
echo "open browser http://localhost:8080" | ||
if [ "$remote" == "https://github.com/pedro-vicente/nostr_client_relay.git" ]; then | ||
export LD_LIBRARY_PATH="$HOME/github/nostr_client_relay/ext/boost_1_82_0/stage/lib":$LD_LIBRARY_PATH | ||
else | ||
export LD_LIBRARY_PATH="$HOME/git/nostr_client_relay/ext/boost_1_82_0/stage/lib":$LD_LIBRARY_PATH | ||
fi | ||
if [[ "$OSTYPE" == "msys"* ]]; then | ||
./Debug/wostro --http-address=0.0.0.0 --http-port=8080 --docroot=. | ||
else | ||
./wostro --http-address=0.0.0.0 --http-port=8080 --docroot=. | ||
fi | ||
|
||
exit | ||
|