Add release build configuration and MSI installer
- Configure self-contained, single-file release build - Add version and company metadata to project - Fix Assembly.Location for single-file compatibility (use AppContext.BaseDirectory) - Add Resources folder copy to publish output - Create WiX installer project with Product.wxs - Configure auto-start via HKCU Run registry key - Add build-release.ps1 PowerShell script for automated builds - MSI installer installs to %LOCALAPPDATA%\DangerousThings\NFC Actions - Creates Start Menu shortcut - Automatically starts application on user login 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -21,9 +21,8 @@ public class LogService
|
||||
{
|
||||
_syncContext = SynchronizationContext.Current;
|
||||
|
||||
// Create log file in the same directory as the executable
|
||||
var exePath = Assembly.GetExecutingAssembly().Location;
|
||||
var exeDir = Path.GetDirectoryName(exePath) ?? Environment.CurrentDirectory;
|
||||
// Create log file in the app directory (works for single-file publish)
|
||||
var exeDir = AppContext.BaseDirectory;
|
||||
var timestamp = DateTime.Now.ToString("yyyyMMdd_HHmmss");
|
||||
_logFilePath = Path.Combine(exeDir, $"nfc-actions-debug-{timestamp}.log");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user