Skip to content

Commit

Permalink
Fix Windows resources
Browse files Browse the repository at this point in the history
  • Loading branch information
LunaTheFoxgirl committed Jul 26, 2022
1 parent 667a190 commit 6c58c34
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ inochi-session-test-*
out/

dub.selections.json
source/session/ver.d
source/session/ver.d
res/inochi-session.res
4 changes: 2 additions & 2 deletions dub.sdl
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ configuration "win32-full" {

targetType "executable"
lflags "/SUBSYSTEM:windows" "/ENTRY:mainCRTStartup" platform="window-dmd"
sourceFiles "res\\inochi-creator.res"
preBuildCommands "rc.exe /v res\\inochi-creator.rc"
sourceFiles "res\\inochi-session.res"
preBuildCommands "rc.exe /v res\\inochi-session.rc"
versions "InBranding"
}

Expand Down
1 change: 0 additions & 1 deletion vcvar.bat

This file was deleted.

11 changes: 11 additions & 0 deletions vcvars.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
function Invoke-VSDevEnvironment {
$vswhere = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe"
$installationPath = & $vswhere -prerelease -legacy -latest -property installationPath
$Command = Join-Path $installationPath "Common7\Tools\vsdevcmd.bat"
& "${env:COMSPEC}" /s /c "`"$Command`" -no_logo && set" | Foreach-Object {
if ($_ -match '^([^=]+)=(.*)') {
[System.Environment]::SetEnvironmentVariable($matches[1], $matches[2])
}
}
}
Invoke-VSDevEnvironment

0 comments on commit 6c58c34

Please sign in to comment.