Skip to content

Commit 9afaa37

Browse files
committed
v2.0.2
v2.0.2 fix
1 parent 80c3b99 commit 9afaa37

File tree

14 files changed

+15
-14
lines changed

14 files changed

+15
-14
lines changed

.github/workflows/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030

3131
- name: Generate key
3232
shell: powershell
33-
run: bin/x64-Release/winrar-keygen.exe ${{steps.text1.outputs.prop}} ${{steps.text2.outputs.prop}} > rarreg.key
33+
run: bin/x64-Release/winrar-keygen.exe ${{steps.text1.outputs.prop}} ${{steps.text2.outputs.prop}} | out-file -encoding ascii rarreg.key
3434

3535
- name: Upload key
3636
uses: actions/upload-artifact@v2

.vs/winrar-keygen/v17/.suo

3 KB
Binary file not shown.

.vs/winrar-keygen/v17/Browse.VC.db

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ This repository will tell you how WinRAR license file `"rarreg.key"` is generate
3636

3737
See [here](README.HOW_DOES_IT_WORK.md).
3838

39-
## 3. Use Github Actions(Error found)
40-
41-
2021.12.9 **A bug was found that caused the key generated by Github Actions to be invalid as well, and is being investigated**
39+
## 3. Use Github Actions
4240

4341
Github Action is a CI/CD tool introduced after Microsoft acquired Github, and you can run programs on GitHub Action by following these steps.
4442

@@ -150,6 +148,8 @@ Example:
150148
winrar-keygen.exe "Github" "Github.com"
151149
or:
152150
winrar-keygen.exe "Github" "Github.com" > rarreg.key
151+
or:
152+
winrar-keygen.exe "Github" "Github.com" > rarreg.key | out-file -encoding ascii rarreg.key
153153
```
154154

155155
![Terminal](assets/terminal.png)

README.zh-CN.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ WinRAR不是免费软件。如果你想使用它,你应当向 [__RARLAB__](htt
3636

3737
[这里](README.HOW_DOES_IT_WORK.zh-CN.md)
3838

39-
## 3. 通过 Github Actions 使用(发现错误)
40-
41-
2021.12.9 **发现了一个错误,导致Github Actions生成的key也是无效的,正在排查中**
39+
## 3. 通过 Github Actions 使用
4240

4341
Github Action 是微软收购 Github 之后推出的 CI/CD 工具,通过以下步骤即可在 GitHub Action 上运行程序:
4442

@@ -146,6 +144,8 @@ Example:
146144
winrar-keygen.exe "Github" "Github.com"
147145
or:
148146
winrar-keygen.exe "Github" "Github.com" > rarreg.key
147+
or:
148+
winrar-keygen.exe "Github" "Github.com" > rarreg.key | out-file -encoding ascii rarreg.key
149149
```
150150

151151
![Terminal](assets/terminal.png)

_tmain.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ void Help() {
1515
_putts(TEXT(" winrar-keygen.exe \"Github\" \"Github.com\""));
1616
_putts(TEXT(" or:"));
1717
_putts(TEXT(" winrar-keygen.exe \"Github\" \"Github.com\" > rarreg.key\n"));
18+
_putts(TEXT(" or:"));
19+
_putts(TEXT(" winrar-keygen.exe \"Github\" \"Github.com\" | out-file -encoding ascii rarreg.key\n"));
1820
}
1921

2022
void PrintRegisterInfo(const WinRarKeygen<WinRarConfig>::RegisterInfo& Info) {
@@ -70,5 +72,4 @@ int _tmain(int argc, PTSTR argv[]) {
7072
Help();
7173
}
7274
return 0;
73-
}
74-
75+
}
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

bin/x64-Release/winrar-keygen.exe

512 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)