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

RIIR #1

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
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
31 changes: 31 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Rust

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Prepare
run: |
sudo apt install libwebkit2gtk-4.0-dev \
build-essential \
curl \
wget \
libssl-dev \
libgtk-3-dev \
libayatana-appindicator3-dev \
librsvg2-dev
cargo install tauri-cli
- name: Build
run: cargo tauri build --verbose
52 changes: 52 additions & 0 deletions .github/workflows/tauri_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Curtosy of ApolloGPT5
name: Build Rust Tauri Application

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

jobs:
build:
runs-on: ubuntu-latest
container:
image: rockylinux/rockylinux:latest

steps:
# Checks out a copy of your repository
- name: Checking out repository
uses: actions/checkout@v2

# Install dependencies
- name: Install required packages
run: |
dnf -y groupinstall "Development Tools"
dnf -y install wget openssl-devel glib2-devel gtk3-devel libsoup-devel webkit2gtk3-devel webkitgtk4-devel cairo-devel pango-devel atk-devel gdk-pixbuf2-devel librsvg2-devel

# Install rustup and stable Rust
- name: Install Rust
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --profile minimal --default-toolchain stable -y
source $HOME/.cargo/env

# Install tauri-cli
- name: Install tauri-cli
run: |
source $HOME/.cargo/env
cargo install tauri-cli

# Build the Rust Tauri application
- name: Build Rust Tauri Application
run: |
source $HOME/.cargo/env
cargo tauri build --verbose

# Upload the built artifacts
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: built-app
path: src-tauri/target/release/bundle/appimage/dcslauncher_*.AppImage
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,15 @@
Launcher for compsoc account

Provides a GUI for dcspkg

# Python version:
Run
`python main.py`

# Rust version:
## Launching during development:
Run
`cargo tauri dev`

Or if running on Ubuntu 22 WSL through XDisplay forwarding, use the command:
`WEBKIT_DISABLE_COMPOSITING_MODE=1 cargo tauri dev`
14 changes: 7 additions & 7 deletions logo_wide.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading