Skip to content

Commit

Permalink
Fix signing the installer.
Browse files Browse the repository at this point in the history
git-svn-id: https://www.williamfeely.info/svn/dxgl@928 8a90861a-4eca-46d5-b744-240ff16d0c4d
  • Loading branch information
dxgldotorg committed May 14, 2019
1 parent 603a4ae commit c344568
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions buildtool/buildtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,6 @@ int ProcessHeaders(char *path)
{
if (strstr(buffer, "//#define DXGLBETA")) strcpy(buffer, "#define DXGLBETA");
}
findptr = strstr(buffer, "$SIGNTOOL");
if (findptr)
{
if (nosign) strncpy(findptr, "0", 10);
else strncpy(findptr, "1", 10);
}
fputs(buffer,fileout);
}
fclose(filein);
Expand Down Expand Up @@ -240,6 +234,12 @@ int ProcessHeaders(char *path)
#endif
#endif
}
findptr = strstr(buffer, "$SIGNTOOL");
if (findptr)
{
if (nosign) strncpy(findptr, "\"0\"", 10);
else strncpy(findptr, "\"1\"", 10);
}
if (DXGLBETA)
{
if(strstr(buffer,";!define _BETA")) strcpy(buffer,"!define _BETA\n");
Expand Down

0 comments on commit c344568

Please sign in to comment.