Skip to content

Commit

Permalink
update action
Browse files Browse the repository at this point in the history
  • Loading branch information
aiqinxuancai committed Feb 5, 2024
1 parent aa33cc4 commit 94c13cf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,18 @@ jobs:

- name: Set Version
run: |
(Get-Content ".\AutoLinker.h" -Encoding UTF8) |
(Get-Content "./AutoLinker.h" -Encoding UTF8) |
ForEach-Object { $_ -replace "0\.0\.0", "$env:GITHUB_REF_NAME" } |
Set-Content ".\AutoLinker.h" -Encoding UTF8
Get-Content ".\AutoLinker.h" -Encoding UTF8 | Out-String | Write-Output
Set-Content "./AutoLinker.h" -Encoding UTF8
Get-Content "./AutoLinker.h" -Encoding UTF8 | Out-String | Write-Output
shell: pwsh

- name: Set Build
run: |
(Get-Content ".\AutoLinker.h" -Encoding UTF8) |
(Get-Content "./AutoLinker.h" -Encoding UTF8) |
ForEach-Object { $_ -replace "1000000", "$env:GITHUB_RUN_NUMBER" } |
Set-Content ".\AutoLinker.h" -Encoding UTF8
Get-Content ".\AutoLinker.h" -Encoding UTF8 | Out-String | Write-Output
Set-Content "./AutoLinker.h" -Encoding UTF8
Get-Content "./AutoLinker.h" -Encoding UTF8 | Out-String | Write-Output
shell: pwsh

- name: Build
Expand Down
7 changes: 1 addition & 6 deletions AutoLinker.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#pragma once
#ifndef __ELIBFNE__
#define __ELIBFNE__

#include <windows.h>
#include <tchar.h>
Expand Down Expand Up @@ -35,7 +33,6 @@ void UpdateCurrentOpenSourceFile();

EXTERN_C INT WINAPI AutoLinker_MessageNotify(INT nMsg, DWORD dwParam1, DWORD dwParam2);


#ifndef __E_STATIC_LIB
#define LIB_GUID_STR "EA968347-300C-4515-8888-F1D3BA3DF67E" /*GUID串*/
#define LIB_MajorVersion 1 /*库主版本号*/
Expand All @@ -57,6 +54,4 @@ EXTERN_C INT WINAPI AutoLinker_MessageNotify(INT nMsg, DWORD dwParam1, DWORD dw
#define LIB_Other "" /*其它信息*/
#define LIB_TYPE_COUNT 1 /*命令分类数量*/
#define LIB_TYPE_STR "0000基本命令\0""\0" /*命令分类*/
#endif

#endif
#endif

0 comments on commit 94c13cf

Please sign in to comment.