Skip to content

Commit 58cf3a1

Browse files
author
arch
committed
update build bat
1 parent b3a3342 commit 58cf3a1

File tree

3 files changed

+6
-51
lines changed

3 files changed

+6
-51
lines changed

build.bat

100644100755
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ rmdir /Q /S "dist/funscript-editor" 2>NUL
55
del "dist\\funscript-editor.zip" 2>NUL
66
del funscript-editor.spec 2>NUL
77

8-
98
set CONDAPATH=%USERPROFILE%\Miniconda3
109
set ENVNAME=python-funscript-editor
1110

@@ -14,12 +13,12 @@ if %ENVNAME%==base (set ENVPATH=%CONDAPATH%) else (set ENVPATH=%CONDAPATH%\envs\
1413
call %CONDAPATH%\Scripts\activate.bat base
1514

1615
if exist %ENVPATH% (
17-
conda env update --name %ENVNAME& --file environment_windows.yaml --prune
16+
call conda env update --name %ENVNAME% --file environment_windows.yaml --prune
1817
) else (
19-
conda env create -f environment_windows.yaml --name %ENVNAME%
18+
call conda env create -f environment_windows.yaml --name %ENVNAME%
2019
)
2120

22-
conda activate %ENVNAME%
21+
call conda activate %ENVNAME%
2322

2423
cd docs/app
2524
mkdocs build
@@ -32,4 +31,5 @@ copy /Y "contrib\\Installer\\assets\\main.lua" "dist\\funscript-editor\\OFS"
3231
copy /Y "contrib\\Installer\\assets\\json.lua" "dist\\funscript-editor\\OFS"
3332
powershell Compress-Archive -LiteralPath "dist/funscript-editor" -DestinationPath "dist/funscript-editor.zip"
3433

35-
conda deactivate
34+
call conda deactivate
35+
timeout 20 >NUL

build_v2.bat

Lines changed: 0 additions & 35 deletions
This file was deleted.

docs/app/docs/user-guide/build.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,7 @@ For Windows user i recommend to use the release version from [github release pag
66

77
We use [pyinstaller](https://pypi.org/project/pyinstaller/) in [miniconda](https://docs.conda.io/en/latest/miniconda.html) environment to create an Windows executable.
88

9-
First download and install [miniconda](https://docs.conda.io/en/latest/miniconda.html) (If you have already [anaconda](https://www.anaconda.com/) installed on your computer you can skip this step). Then run the following commands in the project root directory:
10-
11-
```
12-
conda env create -f environment_windows.yaml
13-
conda activate python-funscript-editor
14-
build.bat
15-
```
16-
17-
This create the Windows executable in `./dist`.
18-
19-
Finally you can remove the build environment with `conda env remove -n python-funscript-editor`
9+
First download and install [miniconda](https://docs.conda.io/en/latest/miniconda.html). Then double click the `build.bat` int the repository root directory to start the build process. This create the Windows executable in `./dist`.
2010

2111
## Linux
2212

0 commit comments

Comments
 (0)