mirror of
https://github.com/Novattz/creamlinux-installer.git
synced 2026-01-24 20:32:51 -05:00
Compare commits
14 Commits
v1.0.2-bet
...
v1.0.4-bet
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6559b15894 | ||
|
|
653c301ba9 | ||
|
|
a6f21c34b1 | ||
|
|
a2d5a38f68 | ||
|
|
ec95d8e975 | ||
|
|
cd80e81d0b | ||
|
|
2324afaa50 | ||
|
|
68a458e612 | ||
|
|
5a6ec9e6cf | ||
|
|
2c0e67eaf3 | ||
|
|
039d0702c7 | ||
|
|
37f872c6bd | ||
|
|
2ad81160ba | ||
|
|
caae074587 |
1
.github/ISSUE_TEMPLATE/bug_report.md
vendored
1
.github/ISSUE_TEMPLATE/bug_report.md
vendored
@@ -31,6 +31,7 @@ If applicable, add screenshots to help explain your problem.
|
|||||||
- Desktop Environment: [e.g. GNOME, KDE, etc.]
|
- Desktop Environment: [e.g. GNOME, KDE, etc.]
|
||||||
- CreamLinux Version: [e.g. 0.1.0]
|
- CreamLinux Version: [e.g. 0.1.0]
|
||||||
- Steam Version: [e.g. latest]
|
- Steam Version: [e.g. latest]
|
||||||
|
- Graphics card: [e.g. 2060 rtx]
|
||||||
|
|
||||||
## Game Information
|
## Game Information
|
||||||
|
|
||||||
|
|||||||
104
.github/workflows/build.yml
vendored
Normal file
104
.github/workflows/build.yml
vendored
Normal file
@@ -0,0 +1,104 @@
|
|||||||
|
name: 'Build CreamLinux'
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main, master, develop]
|
||||||
|
pull_request:
|
||||||
|
branches: [main, master, develop]
|
||||||
|
workflow_dispatch: # Allows manual triggering
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- platform: 'ubuntu-22.04' # Stable Debian-based release
|
||||||
|
args: ''
|
||||||
|
|
||||||
|
runs-on: ${{ matrix.platform }}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: lts/*
|
||||||
|
cache: 'npm'
|
||||||
|
|
||||||
|
- name: Install Rust stable
|
||||||
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
with:
|
||||||
|
components: rustfmt, clippy
|
||||||
|
|
||||||
|
- name: Rust cache
|
||||||
|
uses: swatinem/rust-cache@v2
|
||||||
|
with:
|
||||||
|
workspaces: './src-tauri -> target'
|
||||||
|
|
||||||
|
- name: Install system dependencies (Ubuntu)
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y \
|
||||||
|
libwebkit2gtk-4.1-dev \
|
||||||
|
libayatana-appindicator3-dev \
|
||||||
|
librsvg2-dev \
|
||||||
|
patchelf \
|
||||||
|
build-essential \
|
||||||
|
curl \
|
||||||
|
wget \
|
||||||
|
file \
|
||||||
|
libssl-dev \
|
||||||
|
libgtk-3-dev
|
||||||
|
|
||||||
|
- name: Install frontend dependencies
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
|
- name: Build Tauri app
|
||||||
|
uses: tauri-apps/tauri-action@v0
|
||||||
|
# env:
|
||||||
|
# No GITHUB_TOKEN since we're not creating releases
|
||||||
|
# TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
|
||||||
|
# TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
|
||||||
|
with:
|
||||||
|
# Build configuration
|
||||||
|
projectPath: '.'
|
||||||
|
includeDebug: false
|
||||||
|
includeRelease: true
|
||||||
|
includeUpdaterJson: false
|
||||||
|
tauriScript: 'npm run tauri'
|
||||||
|
args: ${{ matrix.args }}
|
||||||
|
|
||||||
|
# No release configuration - just build artifacts
|
||||||
|
# Omitting tagName, releaseName, and releaseId means no release creation
|
||||||
|
|
||||||
|
- name: Upload build artifacts
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: creamlinux-ubuntu-20.04-artifacts
|
||||||
|
path: |
|
||||||
|
src-tauri/target/release/bundle/
|
||||||
|
src-tauri/target/release/creamlinux
|
||||||
|
src-tauri/target/release/creamlinux.exe
|
||||||
|
retention-days: 30
|
||||||
|
if-no-files-found: warn
|
||||||
|
|
||||||
|
- name: Upload AppImage (if exists)
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: creamlinux-appimage
|
||||||
|
path: |
|
||||||
|
src-tauri/target/release/bundle/appimage/*.AppImage
|
||||||
|
retention-days: 30
|
||||||
|
if-no-files-found: ignore
|
||||||
|
|
||||||
|
- name: Upload DEB package (if exists)
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: creamlinux-deb
|
||||||
|
path: |
|
||||||
|
src-tauri/target/release/bundle/deb/*.deb
|
||||||
|
retention-days: 30
|
||||||
|
if-no-files-found: ignore
|
||||||
@@ -52,7 +52,7 @@ While the core functionality is working, please be aware that this is an early r
|
|||||||
|
|
||||||
- Rust 1.77.2 or later
|
- Rust 1.77.2 or later
|
||||||
- Node.js 18 or later
|
- Node.js 18 or later
|
||||||
- webkit2gtk-4.1
|
- webkit2gtk-4.1 (libwebkit2gtk-4.1 for debian)
|
||||||
- npm or yarn
|
- npm or yarn
|
||||||
|
|
||||||
#### Steps
|
#### Steps
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "creamlinux",
|
"name": "creamlinux",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "1.0.2",
|
"version": "1.0.4",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"author": "Tickbase",
|
"author": "Tickbase",
|
||||||
"repository": "https://github.com/Novattz/creamlinux-installer",
|
"repository": "https://github.com/Novattz/creamlinux-installer",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "app"
|
name = "app"
|
||||||
version = "1.0.1"
|
version = "1.0.4"
|
||||||
description = "DLC Manager for Steam games on Linux"
|
description = "DLC Manager for Steam games on Linux"
|
||||||
authors = ["tickbase"]
|
authors = ["tickbase"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
@@ -36,4 +36,4 @@ tauri-plugin-process = "2"
|
|||||||
custom-protocol = ["tauri/custom-protocol"]
|
custom-protocol = ["tauri/custom-protocol"]
|
||||||
|
|
||||||
[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]
|
[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]
|
||||||
tauri-plugin-updater = "2"
|
# tauri-plugin-updater = "2"
|
||||||
|
|||||||
@@ -9,6 +9,5 @@
|
|||||||
"main"
|
"main"
|
||||||
],
|
],
|
||||||
"permissions": [
|
"permissions": [
|
||||||
"updater:default"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -1001,15 +1001,27 @@ where
|
|||||||
info!("Created backup: {}", backup_path.display());
|
info!("Created backup: {}", backup_path.display());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Extract the appropriate DLL directly to the game directory
|
// Map the Steam API DLL name to the corresponding SmokeAPI DLL name
|
||||||
if let Ok(mut file) = archive.by_name(&api_name.to_string_lossy()) {
|
let smoke_dll_name = match api_name.to_string_lossy().as_ref() {
|
||||||
|
"steam_api.dll" => "SmokeAPI32.dll",
|
||||||
|
"steam_api64.dll" => "SmokeAPI64.dll",
|
||||||
|
_ => {
|
||||||
|
return Err(InstallerError::InstallationError(format!(
|
||||||
|
"Unknown Steam API DLL: {}",
|
||||||
|
api_name.to_string_lossy()
|
||||||
|
)));
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// Extract the appropriate SmokeAPI DLL and rename it to the original Steam API DLL name
|
||||||
|
if let Ok(mut file) = archive.by_name(smoke_dll_name) {
|
||||||
let mut outfile = fs::File::create(&original_path)?;
|
let mut outfile = fs::File::create(&original_path)?;
|
||||||
io::copy(&mut file, &mut outfile)?;
|
io::copy(&mut file, &mut outfile)?;
|
||||||
info!("Installed SmokeAPI as: {}", original_path.display());
|
info!("Installed {} as: {}", smoke_dll_name, original_path.display());
|
||||||
} else {
|
} else {
|
||||||
return Err(InstallerError::InstallationError(format!(
|
return Err(InstallerError::InstallationError(format!(
|
||||||
"Could not find {} in the SmokeAPI zip file",
|
"Could not find {} in the SmokeAPI zip file",
|
||||||
api_name.to_string_lossy()
|
smoke_dll_name
|
||||||
)));
|
)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -513,7 +513,7 @@ fn main() {
|
|||||||
|
|
||||||
tauri::Builder::default()
|
tauri::Builder::default()
|
||||||
.plugin(tauri_plugin_process::init())
|
.plugin(tauri_plugin_process::init())
|
||||||
.plugin(tauri_plugin_updater::Builder::new().build())
|
// .plugin(tauri_plugin_updater::Builder::new().build())
|
||||||
.plugin(tauri_plugin_shell::init())
|
.plugin(tauri_plugin_shell::init())
|
||||||
.plugin(tauri_plugin_dialog::init())
|
.plugin(tauri_plugin_dialog::init())
|
||||||
.plugin(tauri_plugin_fs::init())
|
.plugin(tauri_plugin_fs::init())
|
||||||
|
|||||||
@@ -10,25 +10,12 @@
|
|||||||
"active": true,
|
"active": true,
|
||||||
"targets": "all",
|
"targets": "all",
|
||||||
"category": "Utility",
|
"category": "Utility",
|
||||||
"createUpdaterArtifacts": true,
|
"icon": ["icons/128x128.png", "icons/128x128@2x.png", "icons/icon.png"]
|
||||||
"icon": ["icons/128x128.png", "icons/128x128@2x.png", "icons/icon.png"],
|
|
||||||
"resources": ["resources/libs/*"]
|
|
||||||
},
|
},
|
||||||
"productName": "Creamlinux",
|
"productName": "Creamlinux",
|
||||||
"mainBinaryName": "creamlinux",
|
"mainBinaryName": "creamlinux",
|
||||||
"version": "1.0.2",
|
"version": "1.0.4",
|
||||||
"identifier": "com.creamlinux.dev",
|
"identifier": "com.creamlinux.dev",
|
||||||
"plugins": {
|
|
||||||
"updater": {
|
|
||||||
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDJDNEI1NzBBRDUxODQ3RjEKUldUeFJ4alZDbGRMTE5Vc241NG5yL080UklnaW1iUGdUWElPRXloRGtKZ3M2SWkzK0RGSDh3Q2kK",
|
|
||||||
"endpoints": [
|
|
||||||
"https://github.com/Novattz/creamlinux-installer/releases/latest/download/latest.json"
|
|
||||||
],
|
|
||||||
"windows": {
|
|
||||||
"installMode": "passive"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"app": {
|
"app": {
|
||||||
"withGlobalTauri": false,
|
"withGlobalTauri": false,
|
||||||
"windows": [
|
"windows": [
|
||||||
|
|||||||
Reference in New Issue
Block a user