mirror of
https://github.com/Nezumi-2711/winrar-keygen.git
synced 2026-09-22 13:48:33 +00:00
📘 Update New Method
This commit is contained in:
@@ -1,40 +0,0 @@
|
||||
name: WinRAR Keygen
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
paths:
|
||||
- 'keygen/*.json'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: windows-2022
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4.1.3
|
||||
|
||||
- name: Get key text1
|
||||
id: text1
|
||||
uses: notiz-dev/github-action-json-property@release
|
||||
with:
|
||||
path: 'keygen/info.json'
|
||||
prop_path: 'text1'
|
||||
|
||||
- name: Get key text2
|
||||
id: text2
|
||||
uses: notiz-dev/github-action-json-property@release
|
||||
with:
|
||||
path: 'keygen/info.json'
|
||||
prop_path: 'text2'
|
||||
|
||||
- name: Generate key
|
||||
shell: powershell
|
||||
run: bin/x64-Release/winrar-keygen.exe "${{steps.text1.outputs.prop}}" "${{steps.text2.outputs.prop}}" | Out-File -Encoding ASCII rarreg.key
|
||||
|
||||
- name: Upload key
|
||||
uses: actions/upload-artifact@v4.3.3
|
||||
with:
|
||||
name: rarreg_file
|
||||
path: rarreg.key
|
||||
retention-days: 90
|
||||
@@ -1,22 +0,0 @@
|
||||
name: WinRAR Keygen Secrets
|
||||
|
||||
on: workflow_dispatch
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: windows-2022
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4.1.3
|
||||
|
||||
- name: Generate key
|
||||
shell: powershell
|
||||
run: bin/x64-Release/winrar-keygen.exe "${{secrets.TEXT1}}" "${{secrets.TEXT2}}" | Out-File -Encoding ASCII rarreg.key
|
||||
|
||||
- name: Upload key
|
||||
uses: actions/upload-artifact@v4.3.3
|
||||
with:
|
||||
name: rarreg_file
|
||||
path: rarreg.key
|
||||
retention-days: 90
|
||||
@@ -0,0 +1,107 @@
|
||||
name: WinRAR Keygen
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
KEY_ENCODING:
|
||||
type: string
|
||||
description: License encoding ascii, ansi or utf8
|
||||
default: 'utf8'
|
||||
required: true
|
||||
|
||||
KEY_USERNAME:
|
||||
type: string
|
||||
description: Input your username
|
||||
required: true
|
||||
|
||||
KEY_LICENSE_NAME:
|
||||
type: string
|
||||
description: Input your license name
|
||||
default: 'Single PC usage license'
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
keygen-ascii:
|
||||
name: Generating ASCII License
|
||||
runs-on: windows-2022
|
||||
env:
|
||||
KEY_ENCODING: ${{ github.event.inputs.KEY_ENCODING }}
|
||||
KEY_USERNAME: ${{ github.event.inputs.KEY_USERNAME }}
|
||||
KEY_LICENSE_NAME: ${{ github.event.inputs.KEY_LICENSE_NAME }}
|
||||
if: github.event.inputs.KEY_ENCODING == 'ascii'
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4.1.5
|
||||
|
||||
- name: Generating License (ASCII)
|
||||
# Do Not Use pwsh
|
||||
shell: powershell
|
||||
run: |
|
||||
$OutputEncoding = [console]::InputEncoding = [console]::OutputEncoding = New-Object System.Text.UTF8Encoding
|
||||
$PSVersionTable.PSVersion
|
||||
bin/x64-Release/winrar-keygen.exe "${{env.KEY_USERNAME}}" "${{env.KEY_LICENSE_NAME}}" | Out-File -Encoding ${{env.KEY_ENCODING}} rarreg.key
|
||||
|
||||
- name: Uploading License
|
||||
uses: actions/upload-artifact@v4.3.3
|
||||
with:
|
||||
name: rarreg_file_${{env.KEY_ENCODING}}
|
||||
path: rarreg.key
|
||||
if-no-files-found: error
|
||||
retention-days: 90
|
||||
|
||||
|
||||
keygen-ansi:
|
||||
name: Generating ANSI License
|
||||
runs-on: windows-2022
|
||||
env:
|
||||
KEY_ENCODING: ${{ github.event.inputs.KEY_ENCODING }}
|
||||
KEY_USERNAME: ${{ github.event.inputs.KEY_USERNAME }}
|
||||
KEY_LICENSE_NAME: ${{ github.event.inputs.KEY_LICENSE_NAME }}
|
||||
if: github.event.inputs.KEY_ENCODING == 'ansi'
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4.1.5
|
||||
|
||||
- name: Generating License (ANSI)
|
||||
shell: pwsh
|
||||
run: |
|
||||
$OutputEncoding = [console]::InputEncoding = [console]::OutputEncoding = New-Object System.Text.UTF8Encoding
|
||||
$OutputEncoding
|
||||
bin/x64-Release/winrar-keygen.exe "${{env.KEY_USERNAME}}" "${{env.KEY_LICENSE_NAME}}"
|
||||
bin/x64-Release/winrar-keygen.exe "${{env.KEY_USERNAME}}" "${{env.KEY_LICENSE_NAME}}" | Out-File -Encoding ${{env.KEY_ENCODING}} rarreg.key
|
||||
|
||||
- name: Uploading License
|
||||
uses: actions/upload-artifact@v4.3.3
|
||||
with:
|
||||
name: rarreg_file_${{env.KEY_ENCODING}}
|
||||
path: rarreg.key
|
||||
if-no-files-found: error
|
||||
retention-days: 90
|
||||
|
||||
|
||||
keygen-uft8:
|
||||
name: Generating UTF8 License
|
||||
runs-on: windows-2022
|
||||
env:
|
||||
KEY_ENCODING: ${{ github.event.inputs.KEY_ENCODING }}
|
||||
KEY_USERNAME: ${{ github.event.inputs.KEY_USERNAME }}
|
||||
KEY_LICENSE_NAME: ${{ github.event.inputs.KEY_LICENSE_NAME }}
|
||||
if: github.event.inputs.KEY_ENCODING == 'utf8'
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4.1.5
|
||||
|
||||
- name: Generating License (UTF-8)
|
||||
# Do Not Use pwsh
|
||||
shell: powershell
|
||||
run: |
|
||||
$OutputEncoding = [console]::InputEncoding = [console]::OutputEncoding = New-Object System.Text.UTF8Encoding
|
||||
$PSVersionTable.PSVersion
|
||||
bin/x64-Release/winrar-keygen.exe "utf8:${{env.KEY_USERNAME}}" "${{env.KEY_LICENSE_NAME}}" | Out-File -Encoding ${{env.KEY_ENCODING}} rarreg.key
|
||||
|
||||
- name: Uploading License
|
||||
uses: actions/upload-artifact@v4.3.3
|
||||
with:
|
||||
name: rarreg_file_${{env.KEY_ENCODING}}
|
||||
path: rarreg.key
|
||||
if-no-files-found: error
|
||||
retention-days: 90
|
||||
@@ -0,0 +1,102 @@
|
||||
name: WinRAR Keygen with secrets
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
KEY_ENCODING:
|
||||
type: string
|
||||
description: License encoding ascii, ansi or utf8
|
||||
default: 'utf8'
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
keygen-ascii:
|
||||
name: Generating ASCII License
|
||||
runs-on: windows-2022
|
||||
env:
|
||||
KEY_ENCODING: ${{ github.event.inputs.KEY_ENCODING }}
|
||||
KEY_USERNAME: ${{secrets.TEXT1}}
|
||||
KEY_LICENSE_NAME: ${{secrets.TEXT2}}
|
||||
ZIP_PWD: ${{secrets.PWD}}
|
||||
if: github.event.inputs.KEY_ENCODING == 'ascii'
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4.1.5
|
||||
|
||||
- name: Generating License (ASCII)
|
||||
# Do Not Use pwsh
|
||||
shell: powershell
|
||||
run: |
|
||||
$OutputEncoding = [console]::InputEncoding = [console]::OutputEncoding = New-Object System.Text.UTF8Encoding
|
||||
$PSVersionTable.PSVersion
|
||||
bin/x64-Release/winrar-keygen.exe "${{env.KEY_USERNAME}}" "${{env.KEY_LICENSE_NAME}}" | Out-File -Encoding ${{env.KEY_ENCODING}} rarreg.key
|
||||
7z a rarreg.7z rarreg.key -p"${{env.ZIP_PWD}}"
|
||||
|
||||
- name: Uploading License
|
||||
uses: actions/upload-artifact@v4.3.3
|
||||
with:
|
||||
name: rarreg_file_${{env.KEY_ENCODING}}
|
||||
path: rarreg.7z
|
||||
if-no-files-found: error
|
||||
retention-days: 1
|
||||
|
||||
|
||||
keygen-ansi:
|
||||
name: Generating ANSI License
|
||||
runs-on: windows-2022
|
||||
env:
|
||||
KEY_ENCODING: ${{ github.event.inputs.KEY_ENCODING }}
|
||||
KEY_USERNAME: ${{secrets.TEXT1}}
|
||||
KEY_LICENSE_NAME: ${{secrets.TEXT2}}
|
||||
ZIP_PWD: ${{secrets.PWD}}
|
||||
if: github.event.inputs.KEY_ENCODING == 'ansi'
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4.1.5
|
||||
|
||||
- name: Generating License (ANSI)
|
||||
shell: pwsh
|
||||
run: |
|
||||
$OutputEncoding = [console]::InputEncoding = [console]::OutputEncoding = New-Object System.Text.UTF8Encoding
|
||||
$OutputEncoding
|
||||
bin/x64-Release/winrar-keygen.exe "${{env.KEY_USERNAME}}" "${{env.KEY_LICENSE_NAME}}"
|
||||
bin/x64-Release/winrar-keygen.exe "${{env.KEY_USERNAME}}" "${{env.KEY_LICENSE_NAME}}" | Out-File -Encoding ${{env.KEY_ENCODING}} rarreg.key
|
||||
7z a rarreg.7z rarreg.key -p"${{env.ZIP_PWD}}"
|
||||
|
||||
- name: Uploading License
|
||||
uses: actions/upload-artifact@v4.3.3
|
||||
with:
|
||||
name: rarreg_file_${{env.KEY_ENCODING}}
|
||||
path: rarreg.7z
|
||||
if-no-files-found: error
|
||||
retention-days: 1
|
||||
|
||||
|
||||
keygen-uft8:
|
||||
name: Generating UTF8 License
|
||||
runs-on: windows-2022
|
||||
env:
|
||||
KEY_ENCODING: ${{ github.event.inputs.KEY_ENCODING }}
|
||||
KEY_USERNAME: ${{secrets.TEXT1}}
|
||||
KEY_LICENSE_NAME: ${{secrets.TEXT2}}
|
||||
ZIP_PWD: ${{secrets.PWD}}
|
||||
if: github.event.inputs.KEY_ENCODING == 'utf8'
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4.1.5
|
||||
|
||||
- name: Generating License (UTF-8)
|
||||
# Do Not Use pwsh
|
||||
shell: powershell
|
||||
run: |
|
||||
$OutputEncoding = [console]::InputEncoding = [console]::OutputEncoding = New-Object System.Text.UTF8Encoding
|
||||
$PSVersionTable.PSVersion
|
||||
bin/x64-Release/winrar-keygen.exe "utf8:${{env.KEY_USERNAME}}" "${{env.KEY_LICENSE_NAME}}" | Out-File -Encoding ${{env.KEY_ENCODING}} rarreg.key
|
||||
7z a rarreg.7z rarreg.key -p"${{env.ZIP_PWD}}"
|
||||
|
||||
- name: Uploading License
|
||||
uses: actions/upload-artifact@v4.3.3
|
||||
with:
|
||||
name: rarreg_file_${{env.KEY_ENCODING}}
|
||||
path: rarreg.7z
|
||||
if-no-files-found: error
|
||||
retention-days: 1
|
||||
Reference in New Issue
Block a user