Skip to content
This repository was archived by the owner on Mar 30, 2022. It is now read-only.
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
17 changes: 17 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[alias]
lint = [
"clippy",
"--",
"-D",
"clippy::pedantic",
"-D",
"clippy::cargo",
"-A",
"clippy::option_if_let_else",
"-A",
"clippy::cast_possible_truncation",
"-A",
"clippy::cast_possible_wrap",
"-A",
"clippy::cast_sign_loss"
]
72 changes: 72 additions & 0 deletions .github/workflows/debug-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: Debug Build

on:
pull_request:
branches: main

defaults:
run:
shell: bash

jobs:
build:
runs-on: ${{ matrix.os }}
name: ${{ ( startsWith(matrix.os, 'ubuntu') && 'Linux' ) ||
( startsWith(matrix.os, 'windows') && 'Windows' ) ||
( startsWith(matrix.os, 'mac') && 'macOS' ) }}
strategy:
fail-fast: false
matrix:
# os: [windows-latest, macos-10.15, ubuntu-18.04]
os: [windows-latest]

steps:
- name: Download dependencies (Linux only)
if: ${{ startsWith(matrix.os, 'ubuntu') }}
run: |
sudo apt-get update
sudo apt-get install -y libpango1.0-dev libx11-dev libxext-dev \
libxft-dev libxinerama-dev libxcursor-dev \
libxrender-dev libxfixes-dev ninja-build \
appstream
sudo wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage -O /usr/local/bin/linuxdeploy
sudo chmod +x /usr/local/bin/linuxdeploy
- name: Checkout the repository
uses: actions/checkout@v2
- name: Build
run: |
cargo lint
cargo build
cargo build --release
if ${{ startsWith(matrix.os, 'windows') }}; then
mv target/debug/shuchu.exe shuchu-debug.exe
mv target/release/shuchu.exe .
else
mv target/debug/shuchu shuchu-debug
mv target/release/shuchu .
strip shuchu shuchu-debug
fi
- name: Create an AppImage (Linux only)
if: ${{ startsWith(matrix.os, 'ubuntu') }}
run: |
linuxdeploy --appdir AppDir -e shuchu -d assets/shuchu.desktop -i assets/shuchu-64.png -o appimage
mv Shuchu*.AppImage Shuchu.AppImage
- name: Create an App Bundle (macOS only)
if: ${{ startsWith(matrix.os, 'mac') }}
run: |
cargo install cargo-bundle
cargo bundle
mv target/debug/bundle/osx/Shuchu.app .
- name: Upload the binaries
uses: actions/upload-artifact@v2
with:
name: ${{ ( startsWith(matrix.os, 'ubuntu') && 'Linux' ) ||
( startsWith(matrix.os, 'windows') && 'Windows' ) ||
( startsWith(matrix.os, 'macOS') && 'macOS' ) }}
path: |
shuchu-debug
shuchu-debug.exe
shuchu
shuchu.exe
Shuchu.AppImage
Shuchu.app
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Rust
/target

# AppImage
/AppDir
/*.AppImage
/appimage-builder-cache
166 changes: 166 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[package]
name = "shuchu"
version = "0.1.0"
authors = ["paveloom"]
edition = "2018"
description = "Whoa! What's that?!"
documentation = "https://docs.rs/shuchu"
readme = "README.md"
homepage = "https://paveloom-a.github.io/Shuchu"
repository = "https://github.com/paveloom-a/Shuchu"
license-file = "LICENSE.md"
keywords = ["productivity", "focus", "timer", "rewards", "life"]
categories = ["graphics"]

[package.metadata.bundle]
name = "Shuchu"
identifier = "io.github.paveloom.shuchu"
icon = ["assets/shuchu-64.png"]
resources = ["assets"]
copyright = "Copyright (c) Pavel Sobolev 2021."
category = "public.app-category.productivity"

[profile.dev]
panic = 'abort'

[profile.release]
lto = true
codegen-units = 1
panic = 'abort'

[dependencies]
fltk = { version = "=1.1.10", features = ["fltk-bundled", "use-ninja"] }
crossbeam-channel = {version = "~0.5.1"}
3 changes: 3 additions & 0 deletions assets/menu/arrow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading