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

Linux support #3

Merged
merged 43 commits into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
e85b899
Added support for linux
dafitius Aug 18, 2024
627de6c
Fixed Windows compilation
dafitius Aug 19, 2024
fa29fb9
Replaced copyThings.bat with OS independent alternative
dafitius Aug 19, 2024
0d61e62
Solved some broken imports for linux
dafitius Aug 19, 2024
9d3e7bb
Update game_detection.rs
dafitius Aug 19, 2024
ca2e877
Stopped using symlink to reach steampath
dafitius Aug 19, 2024
b112cab
Merge branch 'main' into linux-moment
dafitius Aug 21, 2024
4855ebf
Update build.yml to support linux builds
dafitius Aug 25, 2024
afad301
Update build.yml
dafitius Aug 25, 2024
f4f02a2
Update build.yml
dafitius Aug 25, 2024
61138ca
Temporary change to build.yml
dafitius Aug 25, 2024
ca74249
Update build.yml
dafitius Aug 25, 2024
acd202b
Update build.yml
dafitius Aug 25, 2024
766cb43
Update build.yml
dafitius Aug 25, 2024
b04f599
Update build.yml
dafitius Aug 25, 2024
a7bc950
Update build.yml
dafitius Aug 25, 2024
29fb5ac
Update build.yml
dafitius Aug 25, 2024
a27171f
Update build.yml
dafitius Aug 25, 2024
b6aeab9
Update build.yml
dafitius Aug 25, 2024
1d19c95
Update build.yml
dafitius Aug 25, 2024
31a3d56
Update build.yml
dafitius Aug 26, 2024
aaaa71d
Update build.yml
dafitius Aug 26, 2024
b103022
Update build.yml
dafitius Aug 26, 2024
852bd53
Refactored release.yml
dafitius Aug 27, 2024
70978cc
Updated release workflow
dafitius Aug 27, 2024
5c9768d
[Revert this commit before the PR!]
dafitius Aug 27, 2024
13c8cca
Update release.yml
dafitius Aug 27, 2024
ad7276f
Update release.yml
dafitius Aug 27, 2024
69b61f1
Update release.yml
dafitius Aug 27, 2024
9ca1a96
Update release.yml
dafitius Aug 28, 2024
5a5304a
Update release.yml
dafitius Aug 28, 2024
9eee449
Post-update
github-actions[bot] Aug 28, 2024
e45f068
Completed release workflow
dafitius Aug 28, 2024
e68bd67
Merge branch 'linux-moment' of https://github.com/dafitius/glacierkit…
dafitius Aug 28, 2024
2d51b74
Improved Linux game detection
dafitius Aug 28, 2024
ffb8c1f
Revert automatically edited version
dafitius Aug 28, 2024
ff01f4a
Revert "[Revert this commit before the PR!]"
dafitius Aug 28, 2024
cd4a0a9
Clippy my beloved
dafitius Aug 28, 2024
86834a2
Improved Linux support
dafitius Aug 29, 2024
c21e1bf
Moved all file dialogs to the Tauri API
dafitius Aug 29, 2024
2d4ff47
Fixed sidecar permissions
dafitius Aug 29, 2024
c7a38aa
Format code
atampy25 Aug 30, 2024
2719848
Code style and clippy fixes
atampy25 Aug 30, 2024
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
30 changes: 30 additions & 0 deletions .github/actions/update-versions/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: "Update versions"
description: "Update all project versions"
inputs:
version:
description: "The version to update to"
required: true
default: "unknown"
runs:
using: "composite"
steps:
- name: Update package.json version
uses: jossef/action-set-json-field@v2
with:
file: "package.json"
field: "version"
value: ${{ inputs.version }}

- name: Update Cargo.toml version
uses: colathro/[email protected]
with:
file: "src-tauri/Cargo.toml"
key: "package.version"
value: ${{ inputs.version }}

- name: Update tauri.conf.json version
uses: jossef/action-set-json-field@v2
with:
file: "src-tauri/tauri.conf.json"
field: "package.version"
value: ${{ inputs.version }}
111 changes: 48 additions & 63 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,77 +5,62 @@ on:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:

jobs:
build:
runs-on: windows-latest
build:
strategy:
fail-fast: false
matrix:
include:
- platform: "ubuntu-22.04"
- platform: "windows-latest"

steps:
- uses: actions/checkout@v2
with:
ref: "main"
fetch-depth: 0
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4

- name: Get latest tag
id: latestTag
uses: "WyriHaximus/[email protected]"
with:
fallback: unknown
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: lts/*

- name: Prepare Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
target: x86_64-pc-windows-msvc
default: true
components: clippy, rustfmt
- name: Setup Rust
uses: dtolnay/rust-toolchain@nightly
with:
components: 'clippy, rustfmt'

- name: Rust cache
uses: Swatinem/[email protected]
with:
workspaces: "src-tauri -> target"
- name: Rust cache
uses: Swatinem/[email protected]
with:
workspaces: "src-tauri -> target"

- name: Install dependencies
run: |
yarn set version 4.0.2
yarn
- name: Install build dependencies (Ubuntu only)
if: matrix.platform == 'ubuntu-22.04'
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf

- name: Update package.json version
uses: jossef/action-set-json-field@v2
with:
file: "package.json"
field: "version"
value: ${{ steps.latestTag.outputs.tag }}
- name: Install front-end dependencies
run: |
yarn set version 4.0.2
yarn

- name: Update Cargo.toml version
uses: colathro/[email protected]
with:
file: "src-tauri/Cargo.toml"
key: "package.version"
value: ${{ steps.latestTag.outputs.tag }}
- name: Disable updater
uses: restackio/[email protected]
with:
file: "src-tauri/tauri.conf.json"
fields: "{\"tauri.updater.active\": false}"

- name: Update tauri.conf.json version
uses: jossef/action-set-json-field@v2
with:
file: "src-tauri/tauri.conf.json"
field: "package.version"
value: ${{ steps.latestTag.outputs.tag }}
- name: Write env file
uses: DamianReeves/[email protected]
with:
path: "./.env"
contents: |
DUMMY_ENV=dummy

- name: Write env file
uses: DamianReeves/[email protected]
with:
path: "./.env"
contents: |
DUMMY_ENV=dummy

- name: Build
env:
NODE_OPTIONS: "--max-old-space-size=4096"
run: |
yarn tauri build

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: Installer
path: src-tauri/target/release/bundle/msi/GlacierKit_${{ steps.latestTag.outputs.tag }}_x64_en-US.msi.zip
- name: Build
env:
NODE_OPTIONS: "--max-old-space-size=4096"
run: |
yarn tauri build
atampy25 marked this conversation as resolved.
Show resolved Hide resolved
Loading
Loading