Skip to content

Commit

Permalink
i bet shit will burn
Browse files Browse the repository at this point in the history
  • Loading branch information
Official-Husko committed Apr 8, 2024
1 parent 2fa787b commit 352c359
Show file tree
Hide file tree
Showing 15 changed files with 6 additions and 530 deletions.
83 changes: 4 additions & 79 deletions .github/workflows/all_os.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
name: Build and Deploy GDLauncher
name: Test if shit breaks

on:
push:
branches:
- patched

- remove-tracking

env:
CARGO_TERM_COLOR: always

jobs:
build_and_deploy_linux:
name: Build and Deploy (Linux)
name: Linux builds go brrrrrr
runs-on: ubuntu-latest
timeout-minutes: 80

Expand All @@ -32,78 +31,4 @@ jobs:
run: pnpm codegen

- name: Build Application for Linux
run: pnpm build:linux-x64

- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: linux
path: ./apps/desktop/release/linux-unpacked/resources/app.asar

build_and_deploy_macos:
name: Build and Deploy (macOS)
runs-on: macos-latest
timeout-minutes: 80

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install pnpm
run: npm install -g pnpm

- name: Install project dependencies
run: pnpm install

- name: Setup Rust toolchain and targets
uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.75.0
targets: aarch64-apple-darwin, x86_64-apple-darwin
components: clippy, rustfmt

- name: Apply the Patch
run: git apply < adsbegone-gdlauncher-carbon.patch

- name: Generate Prisma Code and RSPC Bindings
run: pnpm codegen

- name: Build Application for macOS
run: pnpm build:mac-universal

- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: mac
path: ./apps/desktop/release/mac-universal/GDLauncher.app/Contents/Resources/app.asar

build_and_deploy_windows:
name: Build and Deploy (Windows)
runs-on: windows-latest
timeout-minutes: 80

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install pnpm
run: npm install -g pnpm

- name: Install project dependencies
run: pnpm install

- name: Apply the Patch
run: git apply adsbegone-gdlauncher-carbon.patch

- name: Generate Prisma Code and RSPC Bindings
run: pnpm codegen

- name: Build Application for Windows
run: pnpm build:win-x64

- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: windows
path: ./apps/desktop/release/win-unpacked/resources/app.asar

run: pnpm build:linux-x64
9 changes: 0 additions & 9 deletions apps/desktop/packages/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -405,10 +405,6 @@ const loadCoreModule: CoreModule = () =>

const coreModule = loadCoreModule();

if ((app as any).overwolf) {
(app as any).overwolf.disableAnonymousAnalytics();
}

// Set application name for Windows 10+ notifications
if (process.platform === "win32") app.setAppUserModelId(app.getName());

Expand Down Expand Up @@ -600,11 +596,6 @@ ipcMain.handle("openFolder", async (_, path) => {
shell.showItemInFolder(path);
});

ipcMain.handle("openCMPWindow", async () => {
// @ts-ignore
app.overwolf.openCMPWindow();
});

ipcMain.handle("closeWindow", async () => {
win?.close();
win?.destroy();
Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion apps/desktop/packages/mainWindow/src/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ declare global {
openExternalLink: (link: string) => void;
openFolder: (path: string) => void;
copyToClipboard: (text: string) => void;
openCMPWindow: () => void;
getCoreModule: () => Promise<
| {
type: "success";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,6 @@ type Hash = {
};

const defaultModals = {
privacyStatement: {
component: lazy(() => import("./modals/PrivacyStatement")),
title: "Privacy Statement"
},
termsAndConditions: {
component: lazy(() => import("./modals/TermsAndConditions")),
title: "Terms and Conditions"
},
addManagedJava: {
component: lazy(() => import("./modals/Java/AddManagedJava")),
title: "Add java version"
Expand Down Expand Up @@ -93,10 +85,6 @@ const defaultModals = {
component: lazy(() => import("./modals/OnBoarding")),
noHeader: true
},
whyAreAdsNeeded: {
component: lazy(() => import("./modals/WhyAreAdsNeeded")),
title: "Why are ads needed?"
},
modsUpdater: {
component: lazy(() => import("./modals/ModsUpdater")),
title: "Mods Updater"
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 352c359

Please sign in to comment.