Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TECH] Refactor package.json, electron builder and others #1180

Open
wants to merge 25 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
fcc8e00
tech: move electron-builder config to it's own config
flavioislima Dec 3, 2024
cd229f4
chore: eslint cleanup
flavioislima Dec 3, 2024
3c4ade6
fix: lint command
flavioislima Dec 4, 2024
a5546e0
fix: update author email in package.json
flavioislima Dec 4, 2024
383efc8
Merge branch 'main' of https://github.com/HyperPlay-Gaming/hyperplay-…
flavioislima Dec 16, 2024
0fa66ed
[tech] Update ESLint configuration file reference in package.json
flavioislima Dec 16, 2024
8eae5f7
Merge branch 'main' of https://github.com/HyperPlay-Gaming/hyperplay-…
flavioislima Jan 9, 2025
9f29682
chore: move sripts up
flavioislima Jan 9, 2025
c994704
chore: update elec builder
flavioislima Jan 9, 2025
76fc6f6
chore: add installation step for python setuptools in build workflows
flavioislima Jan 13, 2025
7f40fe1
chore: update electron-updater to version 6.3.9
flavioislima Jan 13, 2025
07e4614
chore: add installation step for python setuptools in flatpak build w…
flavioislima Jan 13, 2025
841f3a4
chore: update flatpak build workflow to install python3 and pip
flavioislima Jan 13, 2025
26d8173
[tech] Update Flatpak build workflow to use new container image and i…
flavioislima Jan 17, 2025
a8d132b
Merge branch 'tech/elec_build_yml' of https://github.com/HyperPlay-Ga…
flavioislima Jan 17, 2025
13b1f28
Merge branch 'main' of https://github.com/HyperPlay-Gaming/hyperplay-…
flavioislima Jan 17, 2025
5665d25
chore: g++
flavioislima Jan 17, 2025
9a9ca09
fix: remove sudo from Flatpak build workflow install command
flavioislima Jan 17, 2025
cdda247
fix: add python3 and python3-pip to Flatpak build workflow dependencies
flavioislima Jan 17, 2025
854ca34
Merge branch 'main' into tech/elec_build_yml
flavioislima Jan 21, 2025
4b4b823
Merge branch 'main' of https://github.com/HyperPlay-Gaming/hyperplay-…
flavioislima Jan 22, 2025
98c0dce
Merge branch 'tech/elec_build_yml' of https://github.com/HyperPlay-Ga…
flavioislima Jan 22, 2025
ea4e91d
fix: python setup tools
flavioislima Jan 23, 2025
6879a76
fix: install missing distutils
flavioislima Jan 23, 2025
4645c55
fix: setuptools second try
flavioislima Jan 23, 2025
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
7 changes: 5 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
i18next-parser.config.js
flatpak/build/
flatpak/.flatpak-builder/
vite.config.ts
**/__mocks__/**
sign/**
buildResetExtension.js
pnpm-lock.yaml
build/**/*
dist/**/*
flatpak-build/**
playwright-report/**
pnpm-lock.yaml
File renamed without changes.
3 changes: 3 additions & 0 deletions .github/workflows/build-mac-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ jobs:
- name: Install node-gyp
run: pnpm add --global node-gyp
shell: bash
- name: install python setuptools
run: pip3 install setuptools
shell: bash
- name: Reconfigure git to use HTTP authentication
run: >
git config --global url."https://github.com/".insteadOf
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ jobs:
- name: Install node-gyp
run: pnpm add --global node-gyp
shell: bash
- name: install python setuptools
run: pip3 install setuptools
shell: bash
- name: Reconfigure git to use HTTP authentication
run: >
git config --global url."https://github.com/".insteadOf
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/flatpak-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ jobs:
group: flatpak-${{ github.ref }}
cancel-in-progress: true
container:
image: bilelmoussaoui/flatpak-github-actions:freedesktop-22.08
image: bilelmoussaoui/flatpak-github-actions:freedesktop-23.08
options: --privileged
steps:
- name: install libnss, libatk, libatk-bridge, libcups, libgtk-3
run: sudo dnf install nss-tools atk-devel at-spi2-atk-devel cups-devel gtk3-devel -y
run: dnf install nss-tools atk-devel at-spi2-atk-devel cups-devel gtk3-devel make automake gcc gcc-c++ g++ python3 python3-pip -y
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup NodeJS
Expand All @@ -41,6 +41,8 @@ jobs:
- name: Install node-gyp
run: pnpm add --global node-gyp
shell: bash
- name: install python setuptools
run: pip3 install setuptools
- name: Reconfigure git to use HTTP authentication
run: >
git config --global url."https://github.com/".insteadOf
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release_macOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ jobs:
run: pnpm add --global node-gyp
shell: bash

- name: install python setuptools
run: pip3 install setuptools
shell: bash

- name: Reconfigure git to use HTTP authentication
run: >
git config --global url."https://github.com/".insteadOf
Expand Down
122 changes: 122 additions & 0 deletions electron-builder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
appId: gg.hyperplay.HyperPlay
productName: HyperPlay
files:
- build/**/*
- node_modules/**/*
- '!build/bin/*'
- build/bin/legendary.LICENSE

extraResources:
- LICENSE_ALL

electronDownload:
mirror: https://github.com/HyperPlay-Gaming/electron-releases/releases/download/
customDir: v33.2.0

asarUnpack:
- build/app_icon.png
- build/app_icon.icns
- build/win_icon.ico
- build/trayIconLight24x24.png
- build/trayIconDark24x24.png
- build/extensions
- build/hyperplay_store_preload.js
- build/transparent_body_preload.js
- build/webviewPreload.js

protocols:
- name: hyperplay
schemes:
- hyperplay

win:
artifactName: ${productName}-${version}-Setup-${arch}.${ext}
icon: build/win_icon.ico
asarUnpack:
- build/bin/win32/legendary.exe
- build/bin/win32/gogdl.exe
files:
- build/bin/win32/*

portable:
artifactName: ${productName}-${version}-Portable-${arch}.${ext}

nsis:
oneClick: false
perMachine: false
allowElevation: true
allowToChangeInstallationDirectory: true
createDesktopShortcut: true
createStartMenuShortcut: true
deleteAppDataOnUninstall: false
installerIcon: build/win_icon.ico
uninstallerIcon: build/win_icon.ico

mac:
artifactName: ${productName}-${version}-macOS-${arch}.${ext}
category: public.app-category.games
icon: build/app_icon.icns
entitlements: build/entitlements.mac.plist
entitlementsInherit: build/entitlements.mac.plist
extendInfo:
com.apple.security.cs.allow-jit: true
notarize:
teamId: DLB2RYLUDX
asarUnpack:
- build/bin/darwin/legendary
- build/bin/darwin/gogdl
files:
- build/bin/darwin/*

dmg:
background: public/dmg.png
window:
width: '600'
height: '500'
contents:
- x: 10
y: 215
type: file
- x: 420
y: 215
type: link
path: /Applications

linux:
category: Game
description: An Open Source Launcher for Web3, GOG and Epic Games
desktop:
Name: HyperPlay
Comment[de]: Ein Open Source Spielelauncher for Web3, GOG und Epic Games
asarUnpack:
- build/bin/linux/legendary
- build/bin/linux/gogdl
- build/bin/linux/wmctrl
- build/bin/linux/vulkan-helper
files:
- build/bin/linux/*

deb:
packageCategory: games
depends:
- curl

pacman:
packageCategory: games
depends:
- curl

rpm:
packageCategory: games
depends:
- curl

snap:
allowNativeWayland: true
category: Games
synopsis: HyperPlay allows players to carry their MetaMask or WalletConnect wallet overlaid on top of every desktop game. Game developers can request transactions or signatures with a simple REST API call that supports every wallet to manage wallet interactions seamlessly.
description: HyperPlay allows players to carry their MetaMask or WalletConnect wallet overlaid on top of every desktop game. Game developers can request transactions or signatures with a simple REST API call that supports every wallet to manage wallet interactions seamlessly. You can also access your Epic and GOG games and play them using Proton or Wine that can be downloaded directly from the interface. DXVK, VKD3D and Winetricks are also included to play Windows Games.
publish:
provider: snapStore
channels: stable
repo: hyperplay
Loading
Loading