Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

merge dev #3

Merged
merged 17 commits into from
Jul 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions .eslintrc.cjs

This file was deleted.

92 changes: 33 additions & 59 deletions .github/workflows/build-installer.yml
Original file line number Diff line number Diff line change
@@ -1,70 +1,44 @@
name: Build Installer

on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
permissions: write-all
name: Build Installer
runs-on: windows-latest # Run script on windows system

runs-on: windows-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '20' # Use NodeJs 20

- name: Install Dependencies
run: npm install # Install dependecies in package.json

- name: Compile and Build Installer
run: npm run build # Run the build script in package.json
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'

- name: Install dependencies
run: npm install

- name: Calculate Artifact Hash
id: calculate-hash
run: |
echo "::set-output name=hash::$(sha256sum build/output/Millennium.Installer-Windows.exe | cut -d ' ' -f 1)"

- name: Create Checksum File
run: |
echo "${{ steps.calculate-hash.outputs.hash }}" > checksum.sha256
working-directory: build/output/

- name: Create Release Draft
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: 1.0.0 # You can specify your version here
release_name: Millennium.Installer v1.0.0 # You can specify your release name here
draft: true
prerelease: false # Change to true if it's a pre-release
body: |
Patch Notes:
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable-x86_64-pc-windows-msvc
profile: minimal
override: true

built from source [here](${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}) using actions
- name: Install Tauri CLI
run: cargo install tauri-cli

- name: Upload Installer Executable
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: build/output/Millennium.Installer-Windows.exe
asset_name: Millennium.Installer-Windows.exe
asset_content_type: application/octet-stream
- name: Build the Tauri application
run: npm run tauri build

- name: Upload Checksum File
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: build/output/checksum.sha256
asset_name: checksum.sha256
asset_content_type: text/plain
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: tauri-app
path: src-tauri/target/release/bundle/
9 changes: 6 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ lerna-debug.log*
node_modules
dist
dist-ssr
dist-electron
release
build
*.local

# Editor directories and files
Expand All @@ -25,3 +22,9 @@ build
*.njsproj
*.sln
*.sw?

# ignore dotenv
.env

#ignore vscode settings
.vscode
69 changes: 24 additions & 45 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,58 +1,37 @@
<img src="https://i.imgur.com/9qYPFSA.png" alt="Alt text" width="40">

## [SCH] Millennium Installer
<div align="center">
<h3><img align="center" height="40" src="https://i.imgur.com/9qYPFSA.png"> &nbsp; &nbsp;Millennium Installer</h3>

A simple standalone program which automates the installation, removal and maintenance of Millennium.

[![GitHub Releases][downloads-badge]][downloads-link] [![Discord][discord-badge]][discord-link] [![Website][website-badge]][website-link] [![Docs][docs-badge]][docs-link]

[downloads-badge]: https://img.shields.io/github/downloads/shadowmonster99/millennium-steam-binaries/total?labelColor=0c0d10&color=3a71c1&style=for-the-badge&logo=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyLjI1IDM4LjVIMzUuNzVDMzYuNzE2NSAzOC41IDM3LjUgMzkuMjgzNSAzNy41IDQwLjI1QzM3LjUgNDEuMTY4MiAzNi43OTI5IDQxLjkyMTIgMzUuODkzNSA0MS45OTQyTDM1Ljc1IDQySDEyLjI1QzExLjI4MzUgNDIgMTAuNSA0MS4yMTY1IDEwLjUgNDAuMjVDMTAuNSAzOS4zMzE4IDExLjIwNzEgMzguNTc4OCAxMi4xMDY1IDM4LjUwNThMMTIuMjUgMzguNUgzNS43NUgxMi4yNVpNMjMuNjA2NSA2LjI1NThMMjMuNzUgNi4yNUMyNC42NjgyIDYuMjUgMjUuNDIxMiA2Ljk1NzExIDI1LjQ5NDIgNy44NTY0N0wyNS41IDhWMjkuMzMzTDMwLjI5MzEgMjQuNTQwN0MzMC45NzY1IDIzLjg1NzMgMzIuMDg0NiAyMy44NTczIDMyLjc2OCAyNC41NDA3QzMzLjQ1MTQgMjUuMjI0MiAzMy40NTE0IDI2LjMzMjIgMzIuNzY4IDI3LjAxNTZMMjQuOTg5OCAzNC43OTM4QzI0LjMwNjQgMzUuNDc3MiAyMy4xOTg0IDM1LjQ3NzIgMjIuNTE1IDM0Ljc5MzhMMTQuNzM2OCAyNy4wMTU2QzE0LjA1MzQgMjYuMzMyMiAxNC4wNTM0IDI1LjIyNDIgMTQuNzM2OCAyNC41NDA3QzE1LjQyMDIgMjMuODU3MyAxNi41MjgyIDIzLjg1NzMgMTcuMjExNyAyNC41NDA3TDIyIDI5LjMyOVY4QzIyIDcuMDgxODMgMjIuNzA3MSA2LjMyODgxIDIzLjYwNjUgNi4yNTU4TDIzLjc1IDYuMjVMMjMuNjA2NSA2LjI1NThaIiBmaWxsPSIjM2E3MWMxIi8+Cjwvc3ZnPgo=
[downloads-link]: #auto-installers

[build-badge]: https://img.shields.io/github/actions/workflow/status/SteamClientHomebrew/Installer/build.yml?branch=main&logo=Github&logoColor=3a71c1&labelColor=0c0d10&color=3a71c1&style=for-the-badge
[build-link]: https://github.com/SteamClientHomebrew/Installer/actions/workflows/build.yml
![userlmn_5792a2476abb30c9e3abc0df0f95e6e2](https://github.com/SteamClientHomebrew/Installer/assets/81448108/0554303a-b0a3-491a-b11c-73fb60451d40)

[discord-badge]: https://img.shields.io/badge/discord-green?labelColor=0c0d10&color=7289da&style=for-the-badge&logo=discord&logoColor=7289da
[discord-link]: https://millennium.web.app/discord
</div>

[website-badge]: https://img.shields.io/badge/website-green?labelColor=0c0d10&color=3a71c1&style=for-the-badge&logo=firefoxbrowser&logoColor=3a71c1
[website-link]: https://millennium.web.app/
## Installing

[docs-badge]: https://img.shields.io/badge/docs-green?labelColor=0c0d10&color=3a71c1&style=for-the-badge&logo=readthedocs&logoColor=3a71c1
[docs-link]: https://millennium.gitbook.io/steam-patcher/
The installer current only supports Windows. See [this page](https://github.com/SteamClientHomebrew/Millennium/wiki/Getting-Started#automatic) for a more detailed guide.

[![Static Badge](https://img.shields.io/badge/Download%20Windows-fff?style=for-the-badge&logo=windows&logoColor=white&color=2D5CBF)][windows-link]

<br>
[windows-link]: https://github.com/SteamClientHomebrew/Installer/releases/latest/download/Millennium.Installer-Windows.exe
[windows-badge]: https://img.shields.io/badge/Windows%20(10+)-3a71c1?logo=Windows&logoColor=white&labelColor=111111&color=3a71c1&style=for-the-badge

## Prerequisites
- [Git](https://git-scm.com)
- [Node.js](https://nodejs.org/en/)
- npm (pre-installed with node)
- Command line of your choice.

## Building
&nbsp;

### Clone the repository.
```ps
git clone https://github.com/SteamClientHomebrew/Installer.git && cd Installer
```
This will create a local copy of this repository and navigate you to the root folder of the repository.
## Building

### Install Dependencies
```ps
npm install
```
This installs node module dependencies needed

### Start Development
```ps
npm run dev
```
This runs the installer in development mode


### Compiling
```ps
npm run build
### Prerequisites
- [git](https://git-scm.com)
- [pnpm](https://pnpm.io/)
- [rust](https://www.rust-lang.org/)
- Command line of your choice.
&nbsp;
```ps1
$ git clone https://github.com/SteamClientHomebrew/Installer.git && cd Installer
$ pnpm install
$ pnpm tauri dev

# Building release
# $ pnpm tauri build
```
compile the installer to an executable
7 changes: 7 additions & 0 deletions core/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Generated by Cargo
# will have compiled files and executables
/target/

# Generated by Tauri
# will have schema files for capabilities auto-completion
/gen/schemas
Loading
Loading