-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix file access for embedded files on windows (#103)
Windows uses '\' as path separator, while Linux uses '/'. However, Go's embed file system uses '/' on all platforms.
- Loading branch information
1 parent
3159665
commit aa5d111
Showing
4 changed files
with
16 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// Package embed puts all files in embed/assets and embed/templates | ||
// into the executable. | ||
// While the embed file system is cross-platform, it always exposes a | ||
// '/'-delimited file system. | ||
package embed |
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,8 @@ | ||
$ErrorActionPreference = "Stop" | ||
Remove-Item kjudge.db* | ||
|
||
& "scripts\windows\production_build.ps1" | ||
|
||
Invoke-Expression ".\kjudge $args" | ||
|
||
# pwsh -c scripts/windows/production_test.ps1 --sandbox=raw to run this test script |