Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed: eventghost installation. include the latest firmware
- Loading branch information
Showing
4 changed files
with
55 additions
and
53 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
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,30 @@ | ||
@ECHO OFF | ||
|
||
SETLOCAL | ||
|
||
SET MYDIR=%~dp0 | ||
SET EXITCODE=0 | ||
|
||
ECHO. * creating EventGhost plugin | ||
SET EGSOURCES=%MYDIR%..\build\EventGhost\egplugin_sources | ||
RMDIR /s /q "%MYDIR%..\build\EventGhost" >nul 2>&1 | ||
MKDIR "%MYDIR%..\build\EventGhost" | ||
|
||
XCOPY /E /I "%MYDIR%..\src\eventghost\egplugin_sources" "%EGSOURCES%" >nul | ||
|
||
COPY "%MYDIR%..\build\x86\python\cec\_cec.pyd" "%EGSOURCES%\PulseEight" >nul | ||
COPY "%MYDIR%..\build\x86\cec.dll" "%EGSOURCES%\PulseEight" >nul | ||
|
||
COPY "%MYDIR%..\build\x86\python\cec\__init__.py" "%EGSOURCES%\PulseEight\cec" >nul | ||
|
||
PowerShell -ExecutionPolicy ByPass -Command "Add-Type -Assembly System.IO.Compression.FileSystem;[System.IO.Compression.ZipFile]::CreateFromDirectory('%EGSOURCES%\', '%EGSOURCES%\..\pulse_eight.egplugin', [System.IO.Compression.CompressionLevel]::Optimal, $false)" | ||
|
||
DEL /q /f "%EGSOURCES%" >nul 2>&1 | ||
|
||
IF NOT EXIST "%EGSOURCES%\..\pulse_eight.egplugin" ( | ||
ECHO. *** failed to create EventGhost plugin *** | ||
SET EXITCODE=1 | ||
GOTO EXIT | ||
) | ||
|
||
exit /b %EXITCODE% |