Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,20 @@ LogViewer-VERSION-Setup.exe

# Option 2: Run the portable executable directly (replace VERSION with current version)
LogViewer-VERSION.exe

# Option 3: Silent installation for enterprise deployment
LogViewer-VERSION-Setup.exe /VERYSILENT /NORESTART /SUPPRESSMSGBOXES /DIR="C:\Program Files\LogViewer"
```

**Silent Installation Options**:
- `/SILENT` - Silent with progress dialog
- `/VERYSILENT` - Completely silent (recommended for automation)
- `/NORESTART` - Prevents automatic restart
- `/SUPPRESSMSGBOXES` - Suppresses message boxes
- `/DIR="path"` - Custom installation directory

**Code Signing for Microsoft Store**: See [`rpmbuild/SOURCES/CODE_SIGNING_GUIDE.md`](rpmbuild/SOURCES/CODE_SIGNING_GUIDE.md) for comprehensive code signing setup to meet Microsoft Store Policy 10.2.9 requirements.

#### Method 2: Source Installation
```bash
# Clone the repository
Expand Down
48 changes: 48 additions & 0 deletions rpmbuild/SOURCES/Build_App_Windows.bat
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,18 @@ REM Get the directory where this script is located
cd /d "%~dp0"
echo Script directory: %CD%

REM Check code signing configuration
if defined CODESIGN_IDENTITY (
echo Code signing enabled with identity: %CODESIGN_IDENTITY%
if not defined CODESIGN_TIMESTAMP (
set CODESIGN_TIMESTAMP=http://timestamp.digicert.com
)
echo Timestamp server: %CODESIGN_TIMESTAMP%
) else (
echo Code signing disabled - set CODESIGN_IDENTITY environment variable to enable
echo For Microsoft Store submission, you MUST enable code signing
)

REM Check if Python is installed
python --version >nul 2>&1
if %errorlevel% neq 0 (
Expand Down Expand Up @@ -77,6 +89,34 @@ if exist "dist\LogViewer-%VERSION%.exe" (
echo Copying executable to current directory...
copy "dist\LogViewer-%VERSION%.exe" "LogViewer-%VERSION%.exe"

REM Post-build code signing (if PyInstaller signing failed or for additional signatures)
if defined CODESIGN_IDENTITY (
echo Performing post-build code signing...
if defined CODESIGN_PFX_FILE (
REM Sign using PFX file
signtool sign /f "%CODESIGN_PFX_FILE%" /p "%CODESIGN_PASSWORD%" /tr "%CODESIGN_TIMESTAMP%" /td sha256 /fd sha256 "LogViewer-%VERSION%.exe"
) else (
REM Sign using certificate store
signtool sign /n "%CODESIGN_IDENTITY%" /tr "%CODESIGN_TIMESTAMP%" /td sha256 /fd sha256 "LogViewer-%VERSION%.exe"
)

if %errorlevel% equ 0 (
echo ✓ Code signing successful

REM Verify the signature
echo Verifying code signature...
signtool verify /pa /v "LogViewer-%VERSION%.exe"
if %errorlevel% equ 0 (
echo ✓ Code signature verification successful
) else (
echo ⚠ Code signature verification failed
)
) else (
echo ✗ Code signing failed
echo Warning: Executable is not signed - Microsoft Store submission will fail
)
)

echo.
echo Build completed successfully!
echo Executable location: %CD%\LogViewer-%VERSION%.exe
Expand All @@ -86,6 +126,14 @@ if exist "dist\LogViewer-%VERSION%.exe" (
echo Executable size: %%~zA bytes
)

REM Check if executable is signed
signtool verify /pa "LogViewer-%VERSION%.exe" >nul 2>&1
if %errorlevel% equ 0 (
echo ✓ Executable is digitally signed
) else (
echo ⚠ Executable is NOT digitally signed - Microsoft Store submission will fail
)

echo.
echo You can now run LogViewer-%VERSION%.exe
) else (
Expand Down
Loading
Loading