Skip to content

Commit

Permalink
v0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zyxkad committed Mar 11, 2024
1 parent a5a5955 commit bb21376
Show file tree
Hide file tree
Showing 14 changed files with 517 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@

name: Publish Certificates

on:
push:
tags:
- 'v*'

jobs:
test:
runs-on: windows-2022
steps:
-
name: Action Checkout
uses: actions/checkout@v3
-
name: Setup Golang
uses: actions/setup-go@v4
with:
go-version-file: ./go.mod
cache-dependency-path: ./go.sum
-
name: Output TAG
id: tag
shell: bash
run: |
RELEASE_VERSION="${GITHUB_REF#refs/*/}"
echo "tag=${RELEASE_VERSION}"
echo "tag=${RELEASE_VERSION}" >> "$GITHUB_OUTPUT"
-
name: Run build-windows.exe
env:
TAG: ${{ steps.tag.outputs.tag }}
CODE_SIGN_PFX: ${{ secrets.CODE_SIGN_PFX }}
CODE_SIGN_PFX_PASSWORD: ${{ secrets.CODE_SIGN_PFX_PASSWORD }}
run: go run ./scripts/build-windows.go
-
name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
-
name: Upload Release Assets
uses: zyxkad/upload-release-asset-dir@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_dir: ./output
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

# Mac OS
.DS_Store

# Builds
/build
/output
28 changes: 28 additions & 0 deletions LiterMC-CodeSign.cer
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
-----BEGIN CERTIFICATE-----
MIIExTCCAq2gAwIBAgIBATANBgkqhkiG9w0BAQsFADB+MQswCQYDVQQGEwJDQTEQ
MA4GA1UECA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+QQNfr0qUPMCpJ/EEe9r8QJoh/sAH/VtMqLWirdZj
+tR0o24r1QzNgH87RoTyJO0EE+qOYwYWuvbtvfYCXsQlG0h+XzF54dTXiofmRLcg
o+tSfwomPJ1DngUCMwGgZpKbBnc/17xMjGuS/AC/Wmc4LqbGNMUclDKmunnQHPJV
8Q8eNBP7OTdiEliEy5lhy2pjIg/7Gq8hzYTKfJ3bzh72WTut5JD0JSfaMC4jN6n1
0vtMHHJ9LShck2hM9ZDFKIF8vbBdpFrlQCWA3Y+uCNmXEsQXNj/7KA7PcOVOUD7O
yeT1PMDgGTl+H+szH3o4CeEMiT7kR+rQJ2yHrqHEMN8KCx8pLa4nae4TTPf9R2+U
VMbEn3uk6ZEUT//L2ajPL1wzTtiobAhbVAxAu2Loomq1UhbUt3EiCD7nyNayIX5t
zinpNEeNWka9SxERD63j8dEUekRnKDSqFyaz2+/+cO24uY/kS/ANeHJ4/E2UKHi0
hiMMmkXhSD62TA4JLN3jrW/Lkzw632IO1A==
-----END CERTIFICATE-----
34 changes: 34 additions & 0 deletions LiterMC-RootCA.cer
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
-----BEGIN CERTIFICATE-----
MIIF6jCCA9KgAwIBAgIUQY0k2wdtf8N9TuJ2eDFZ3bTnl9gwDQYJKoZIhvcNAQEM
BQAwfjELMAkGA1UEBhMCQ0ExEDAOBgNVBAgMB0FsYmVydGExEDAOBgNVBAcMB0Nh
bGdhcnkxEDAOBgNVBAoMB0xpdGVyTUMxGDAWBgNVBAMMD0xpdGVyTUMgUm9vdCBD
QTEfMB0GCSqGSIb3DQEJARYQenl4a2FkQGdtYWlsLmNvbTAeFw0yNDAzMDkwMzAx
NDhaFw0zNDAzMDcwMzAxNDhaMH4xCzAJBgNVBAYTAkNBMRAwDgYDVQQIDAdBbGJl
cnRhMRAwDgYDVQQHDAdDYWxnYXJ5MRAwDgYDVQQKDAdMaXRlck1DMRgwFgYDVQQD
DA9MaXRlck1DIFJvb3QgQ0Ex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b+3ONAsiiaIrQhvKgwwWCZvoZYM32GO11IsJcv/k1FWI7ImZQSwIRGByTCbno
/jUt3oSAY4uRlLC8B/WMnvvEGdTsNbkCEyi5McVbC9dHSp39S0M6rFZSezqfEhLe
+2Fk0t3h1XxsE+X+08v8QSE5dzFjQc5HFsKHGrZc6CxOCA3El4a1l+1MjSwnrNAu
WRbMXgADc9wsmKlbmijAu2QD9PSScF1UQe5Dyc8WdBw3AoY1PUGMPsWFDhQIubUE
8IGi5MTIKVsEjG/mVO0vVUm+h/xsBRtjC4iLtlNeyp4h8oUgBqP4O105PU0d5zHX
hoeMimMx4nvGDGcgLnCw7wAe1NbM+lRA7fuTb4pHxkd+KGYWKqMMdmugaNn+vQFv
5KTsgqgHu/wauJzzDsfT9HEfePyENJ9u7XogF5ZzsDfRrjK+NI+qy2ydc6b61iI7
HKNWcQtrf7HlwJOqU187/7YGFkiqTjM9z+se9nIFWqy8n9BxsjWr5auhkIakdOBb
9BzLVk4jqVt9tyGSF7UwWkEHuXClZTy/L1YjYRlL
-----END CERTIFICATE-----
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/LiterMC/certificate

go 1.22.0
Empty file added go.sum
Empty file.
Binary file added images/MsiBanner.bmp
Binary file not shown.
Binary file added images/MsiDialog.bmp
Binary file not shown.
23 changes: 23 additions & 0 deletions images/README.rtf
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{\rtf1\ansi\ansicpg1252\cocoartf2758
\cocoatextscaling0\cocoaplatform0{\fonttbl\f0\froman\fcharset0 Times-Bold;\f1\froman\fcharset0 Times-Roman;}
{\colortbl;\red255\green255\blue255;\red38\green38\blue38;\red255\green255\blue255;}
{\*\expandedcolortbl;;\cssrgb\c20000\c20000\c20000;\cssrgb\c100000\c100000\c100000;}
{\*\listtable{\list\listtemplateid1\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{disc\}}{\leveltext\leveltemplateid1\'01\uc0\u8226 ;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid1}}
{\*\listoverridetable{\listoverride\listid1\listoverridecount0\ls1}}
\vieww11520\viewh8400\viewkind0
\deftab720
\pard\pardeftab720\sa288\qc\partightenfactor0

\f0\b\fs30 \cf2 \cb3 \expnd0\expndtw0\kerning0
You are going to install LiterMC certificates\
\pard\pardeftab720\sa288\partightenfactor0
\f1\b0 \cf2 LiterMC certificates include:\
\pard\tx220\tx720\pardeftab720\li720\fi-720\sa288\partightenfactor0
\ls1\ilvl0\cf2 \kerning1\expnd0\expndtw0 {\listtext \uc0\u8226 }\expnd0\expndtw0\kerning0
a self-signed Root CA\
\ls1\ilvl0\kerning1\expnd0\expndtw0 {\listtext \uc0\u8226 }\expnd0\expndtw0\kerning0
a code sign certificates\
\pard\pardeftab720\sa288\partightenfactor0

\f0\b \cf2 Before you install the certificates, ensure the fingerprint of the Root CA match the fingerprint in the {\field{\*\fldinst{HYPERLINK "https://github.com/LiterMC/certificate/blob/main/README.md#fingerprints"}}{\fldrslt README}}.}
Binary file added images/app.ico
Binary file not shown.
6 changes: 6 additions & 0 deletions installer/windows/Product.Loc-en.wxl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<WixLocalization Culture="en-us" Codepage="1252" xmlns="http://schemas.microsoft.com/wix/2006/localization">
<String Id="Language">1033</String>

<String Id="DowngradeError">A newer version of [ProductName] is already installed.</String>
</WixLocalization>
62 changes: 62 additions & 0 deletions installer/windows/Product.wxs
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:iis="http://schemas.microsoft.com/wix/IIsExtension">
<Product
Id="*"
Name="LiterMC Certificates"
Manufacturer="https://github.com/LiterMC"
Version="$(var.BuildVersion)"
UpgradeCode="0174C2AE-7D95-403F-B549-ADB88C58379B"
Language="!(loc.Language)"
>
<Package
Id="*"
Keywords="Installer,Certificate"
Description="LiterMC Certificate Installer"
InstallerVersion="500"
Compressed="yes"
InstallScope="perUser"
Languages="1033"
/>
<Property Id="ARPCONTACT" Value="[email protected]" />
<Property Id="ARPREADME" Value="https://github.com/LiterMC/certificate/" />
<Property Id="ARPHELPLINK" Value="https://github.com/LiterMC/certificate/" />

<WixVariable Id="WixUILicenseRtf" Value="images\README.rtf" />
<Property Id="LicenseAccepted" Value="1"/>
<WixVariable Id="WixUIBannerBmp" Value="images\MsiBanner.bmp" />
<WixVariable Id="WixUIDialogBmp" Value="images\MsiDialog.bmp" />

<MediaTemplate EmbedCab="yes" CompressionLevel="high" MaximumUncompressedMediaSize="10" />
<MajorUpgrade DowngradeErrorMessage="!(loc.DowngradeError)" />

<Binary Id="RootCA.Binary" SourceFile="LiterMC-RootCA.cer" />
<Binary Id="CodeSign.Binary" SourceFile="LiterMC-CodeSign.cer" />

<Directory Id="TARGETDIR">
<Component Id="InstallLiterMCRootCA" Guid="7BCC6FD0-BA24-46A1-8358-0CD2DAF0E1BE">
<iis:Certificate
Id="LiterMCRootCA"
Name="LiterMC-RootCA"
StoreLocation="currentUser"
StoreName="root"
Overwrite="yes"
BinaryKey="RootCA.Binary"
/>
</Component>
<Component Id="InstallLiterMCCodeSign" Guid="EB10C0DA-39F7-44BF-940B-4752116A8213">
<iis:Certificate
Id="LiterMCCodeSign"
Name="LiterMC-CodeSign"
StoreLocation="currentUser"
StoreName="trustedPublisher"
Overwrite="yes"
BinaryKey="CodeSign.Binary"
/>
</Component>
</Directory>
<Feature Id="Complete" Title="Install LiterMC Certifications" Level="1">
<ComponentRef Id="InstallLiterMCRootCA" />
<ComponentRef Id="InstallLiterMCCodeSign" />
</Feature>
</Product>
</Wix>
3 changes: 3 additions & 0 deletions private/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

*
!/.gitignore
Loading

0 comments on commit bb21376

Please sign in to comment.