Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
wsssh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexlab
wsssh
Commits
a57e71e6
Commit
a57e71e6
authored
Sep 13, 2025
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix build.sh to skip venv creation and pip install when using --wssshtools-only
parent
4f48465d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
18 deletions
+19
-18
build.sh
build.sh
+19
-18
No files found.
build.sh
View file @
a57e71e6
...
...
@@ -67,27 +67,26 @@ while [[ $# -gt 0 ]]; do
done
# Check if virtual environment exists, create if not
if
[
!
-d
"venv"
]
;
then
echo
"Creating virtual environment..."
python3
-m
venv venv
fi
# Activate virtual environment
.
venv/bin/activate
# Install requirements
echo
"Installing requirements..."
pip3
install
-r
requirements.txt
# Install pyinstaller if not already installed
pip3
install
pyinstaller
# Create dist directory if not exists
mkdir
-p
dist
# Skip Python/C building if --debian-only or --wssshtools-only is specified
if
[
"
$BUILD_DEBIAN_ONLY
"
=
false
]
&&
[
"
$BUILD_WSSSHTOOLS_ONLY
"
=
false
]
;
then
# Check if virtual environment exists, create if not
if
[
!
-d
"venv"
]
;
then
echo
"Creating virtual environment..."
python3
-m
venv venv
fi
# Activate virtual environment
.
venv/bin/activate
# Install requirements
echo
"Installing requirements..."
pip3
install
-r
requirements.txt
# Install pyinstaller if not already installed
pip3
install
pyinstaller
# Generate SSL certificates if they don't exist
if
[
!
-f
"cert.pem"
]
||
[
!
-f
"key.pem"
]
;
then
echo
"Generating SSL certificates..."
...
...
@@ -200,8 +199,10 @@ if [ "$BUILD_DEBIAN" = true ]; then
fi
fi
# Deactivate venv
deactivate
# Deactivate venv if it was activated
if
[
"
$BUILD_DEBIAN_ONLY
"
=
false
]
&&
[
"
$BUILD_WSSSHTOOLS_ONLY
"
=
false
]
;
then
deactivate
fi
if
[
"
$BUILD_DEBIAN_ONLY
"
=
true
]
;
then
echo
"Debian package build complete."
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment