-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Transition to streamdeck-sdk==1.0.0;
Refusal of src folder;
- Loading branch information
Showing
32 changed files
with
96 additions
and
92 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
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
annotated-types==0.7.0 | ||
certifi==2024.8.30 | ||
charset-normalizer==3.3.2 | ||
decohints==1.0.9 | ||
idna==3.8 | ||
pydantic==2.8.2 | ||
pydantic_core==2.20.1 | ||
requests==2.32.3 | ||
streamdeck-sdk==1.0.0 | ||
typing_extensions==4.12.2 | ||
urllib3==2.2.2 | ||
websockets==13.0.1 |
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
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
132 changes: 66 additions & 66 deletions
132
src/com.ggusev.loremflickr.sdPlugin/run.bat → com.ggusev.loremflickr.sdPlugin/run.bat
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,66 +1,66 @@ | ||
@echo off | ||
|
||
SET PYTHON_COMMAND=python | ||
SET PYTHON_OK_VERSION=Python 3 | ||
SET PYTHON_MINIMUM_VERSION=3.8 | ||
|
||
SET BASE_PATH=%~dp0 | ||
SET PLUGIN_DIR_PATH=%BASE_PATH:~0,-1% | ||
for %%I in ("%PLUGIN_DIR_PATH%") do set PLUGIN_NAME=%%~nxI | ||
SET PLUGIN_LOGS_DIR_PATH=%PLUGIN_DIR_PATH%\logs | ||
SET PYTHON_INIT_PATH=%PLUGIN_DIR_PATH%\init.py | ||
|
||
SET PLUGIN_CODE_DIR_PATH=%PLUGIN_DIR_PATH%\code | ||
SET PLUGIN_CODE_REQUIREMENTS_PATH=%PLUGIN_CODE_DIR_PATH%\requirements.txt | ||
SET PLUGIN_CODE_PATH=%PLUGIN_CODE_DIR_PATH%\main.py | ||
|
||
SET PLUGIN_CODE_VENV_DIR_PATH=%PLUGIN_CODE_DIR_PATH%\venv | ||
SET PLUGIN_CODE_VENV_ACTIVATE=%PLUGIN_CODE_VENV_DIR_PATH%\Scripts\Activate | ||
SET PLUGIN_CODE_VENV_PYTHON=%PLUGIN_CODE_VENV_DIR_PATH%\Scripts\python.exe | ||
|
||
echo "%PYTHON_COMMAND%" | ||
echo "%PYTHON_OK_VERSION%" | ||
echo "%PYTHON_MINIMUM_VERSION%" | ||
|
||
echo "%BASE_PATH%" | ||
echo "%PLUGIN_DIR_PATH%" | ||
echo "%PLUGIN_NAME%" | ||
echo "%PLUGIN_LOGS_DIR_PATH%" | ||
echo "%PYTHON_INIT_PATH%" | ||
|
||
echo "%PLUGIN_CODE_DIR_PATH%" | ||
echo "%PLUGIN_CODE_REQUIREMENTS_PATH%" | ||
echo "%PLUGIN_CODE_PATH%" | ||
|
||
echo "%PLUGIN_CODE_VENV_DIR_PATH%" | ||
echo "%PLUGIN_CODE_VENV_ACTIVATE%" | ||
echo "%PLUGIN_CODE_VENV_PYTHON%" | ||
|
||
FOR /F "tokens=* USEBACKQ" %%F IN (`%PYTHON_COMMAND% -V`) DO SET PYTHON_VERSION=%%F | ||
echo "%PYTHON_VERSION%" | ||
|
||
IF "%PYTHON_VERSION%" == "" ( | ||
echo "bad python" | ||
powershell -Command "& {Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.MessageBox]::Show('%PYTHON_OK_VERSION% not installed', 'StreamDeck \"%PLUGIN_NAME%\" plugin ERROR', 'OK', [System.Windows.Forms.MessageBoxIcon]::Information);}" | ||
exit | ||
) | ||
|
||
IF NOT "%PYTHON_VERSION:~0,8%" == "%PYTHON_OK_VERSION%" ( | ||
echo "bad python" | ||
powershell -Command "& {Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.MessageBox]::Show('%PYTHON_OK_VERSION% not installed', 'StreamDeck \"%PLUGIN_NAME%\" plugin ERROR', 'OK', [System.Windows.Forms.MessageBoxIcon]::Information);}" | ||
exit | ||
) | ||
|
||
FOR /F "tokens=* USEBACKQ" %%F IN (`%PYTHON_COMMAND% "%PYTHON_INIT_PATH%"`) DO SET INIT_RESULT=%%F | ||
echo "%INIT_RESULT%" | ||
|
||
IF NOT "%INIT_RESULT%" == "True" ( | ||
echo "bad python" | ||
powershell -Command "& {Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.MessageBox]::Show('%INIT_RESULT%', 'StreamDeck \"%PLUGIN_NAME%\" plugin ERROR', 'OK', [System.Windows.Forms.MessageBoxIcon]::Information);}" | ||
exit | ||
) | ||
|
||
SET PYTHONPATH="%PLUGIN_CODE_DIR_PATH%" | ||
echo "%PYTHONPATH%" | ||
|
||
"%PLUGIN_CODE_VENV_PYTHON%" "%PLUGIN_CODE_PATH%" %* | ||
@echo off | ||
|
||
SET PYTHON_COMMAND=python | ||
SET PYTHON_OK_VERSION=Python 3 | ||
SET PYTHON_MINIMUM_VERSION=3.8 | ||
|
||
SET BASE_PATH=%~dp0 | ||
SET PLUGIN_DIR_PATH=%BASE_PATH:~0,-1% | ||
for %%I in ("%PLUGIN_DIR_PATH%") do set PLUGIN_NAME=%%~nxI | ||
SET PLUGIN_LOGS_DIR_PATH=%PLUGIN_DIR_PATH%\logs | ||
SET PYTHON_INIT_PATH=%PLUGIN_DIR_PATH%\init.py | ||
|
||
SET PLUGIN_CODE_DIR_PATH=%PLUGIN_DIR_PATH%\code | ||
SET PLUGIN_CODE_REQUIREMENTS_PATH=%PLUGIN_CODE_DIR_PATH%\requirements.txt | ||
SET PLUGIN_CODE_PATH=%PLUGIN_CODE_DIR_PATH%\main.py | ||
|
||
SET PLUGIN_CODE_VENV_DIR_PATH=%PLUGIN_CODE_DIR_PATH%\venv | ||
SET PLUGIN_CODE_VENV_ACTIVATE=%PLUGIN_CODE_VENV_DIR_PATH%\Scripts\Activate | ||
SET PLUGIN_CODE_VENV_PYTHON=%PLUGIN_CODE_VENV_DIR_PATH%\Scripts\python.exe | ||
|
||
echo "%PYTHON_COMMAND%" | ||
echo "%PYTHON_OK_VERSION%" | ||
echo "%PYTHON_MINIMUM_VERSION%" | ||
|
||
echo "%BASE_PATH%" | ||
echo "%PLUGIN_DIR_PATH%" | ||
echo "%PLUGIN_NAME%" | ||
echo "%PLUGIN_LOGS_DIR_PATH%" | ||
echo "%PYTHON_INIT_PATH%" | ||
|
||
echo "%PLUGIN_CODE_DIR_PATH%" | ||
echo "%PLUGIN_CODE_REQUIREMENTS_PATH%" | ||
echo "%PLUGIN_CODE_PATH%" | ||
|
||
echo "%PLUGIN_CODE_VENV_DIR_PATH%" | ||
echo "%PLUGIN_CODE_VENV_ACTIVATE%" | ||
echo "%PLUGIN_CODE_VENV_PYTHON%" | ||
|
||
FOR /F "tokens=* USEBACKQ" %%F IN (`%PYTHON_COMMAND% -V`) DO SET PYTHON_VERSION=%%F | ||
echo "%PYTHON_VERSION%" | ||
|
||
IF "%PYTHON_VERSION%" == "" ( | ||
echo "bad python" | ||
powershell -Command "& {Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.MessageBox]::Show('%PYTHON_OK_VERSION% not installed', 'StreamDeck \"%PLUGIN_NAME%\" plugin ERROR', 'OK', [System.Windows.Forms.MessageBoxIcon]::Information);}" | ||
exit | ||
) | ||
|
||
IF NOT "%PYTHON_VERSION:~0,8%" == "%PYTHON_OK_VERSION%" ( | ||
echo "bad python" | ||
powershell -Command "& {Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.MessageBox]::Show('%PYTHON_OK_VERSION% not installed', 'StreamDeck \"%PLUGIN_NAME%\" plugin ERROR', 'OK', [System.Windows.Forms.MessageBoxIcon]::Information);}" | ||
exit | ||
) | ||
|
||
FOR /F "tokens=* USEBACKQ" %%F IN (`%PYTHON_COMMAND% "%PYTHON_INIT_PATH%"`) DO SET INIT_RESULT=%%F | ||
echo "%INIT_RESULT%" | ||
|
||
IF NOT "%INIT_RESULT%" == "True" ( | ||
echo "bad python" | ||
powershell -Command "& {Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.MessageBox]::Show('%INIT_RESULT%', 'StreamDeck \"%PLUGIN_NAME%\" plugin ERROR', 'OK', [System.Windows.Forms.MessageBoxIcon]::Information);}" | ||
exit | ||
) | ||
|
||
SET PYTHONPATH="%PLUGIN_CODE_DIR_PATH%" | ||
echo "%PYTHONPATH%" | ||
|
||
"%PLUGIN_CODE_VENV_PYTHON%" "%PLUGIN_CODE_PATH%" %* |
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 was deleted.
Oops, something went wrong.