2020-05-10 11:26:09 -07:00
|
|
|
@echo off
|
|
|
|
|
|
2020-05-10 20:08:52 -07:00
|
|
|
set dest=".\dist\"
|
|
|
|
|
|
2020-05-10 15:25:20 -07:00
|
|
|
REM The below is an alternative to using a custom hook for praw
|
2020-05-10 11:26:09 -07:00
|
|
|
REM FOR /F "tokens=* USEBACKQ" %%F IN (`pipenv --venv`) DO (
|
|
|
|
|
REM SET pipenvdir=%%F
|
|
|
|
|
REM )
|
|
|
|
|
REM --add-data "%pipenvdir%\Lib\site-packages\praw\praw.ini;site-packages\praw\praw.ini" ^
|
|
|
|
|
|
2020-05-10 15:25:20 -07:00
|
|
|
REM using the --noconfirm option sometimes causes issues when rebuilding
|
|
|
|
|
REM (ie when it tries to delete the previous dist directory)
|
2020-05-10 11:26:09 -07:00
|
|
|
pyinstaller ^
|
2020-05-10 15:25:20 -07:00
|
|
|
--onefile ^
|
2020-05-10 11:26:09 -07:00
|
|
|
--additional-hooks-dir .\pyinstaller-hooks\ ^
|
|
|
|
|
PointsBot.py
|
2020-05-10 20:08:52 -07:00
|
|
|
|
|
|
|
|
copy ".\README.md" %dest%
|
|
|
|
|
copy ".\LICENSE.md" %dest%
|
|
|
|
|
copy ".\CHANGELOG.md" %dest%
|
|
|
|
|
|
|
|
|
|
mkdir .\releases\
|
|
|
|
|
powershell Compress-Archive -Force .\dist\* .\releases\PointsBot_Windows_x64.zip
|