Skip to content

Commit

Permalink
started on CD
Browse files Browse the repository at this point in the history
  • Loading branch information
Pebkac03 committed Aug 7, 2024
1 parent cc9965c commit befb892
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name:
Build

# Controls what will trigger the workflow.
# Change it to your needs.
on:
# A new push to the "main" branch.
push:
branches: ["main"]
# A new pull request to the "main" branch.
pull_request:
branches: ["main"]

# Allows to trigger the workflow from GitHub interfaces.
workflow_dispatch:

# A single workflow can have multiple jobs.
jobs:
# 'A new job is defined with the name: "build_android"
build_windows:
# Defines what operating system will be used for the actions.
# For android, we will use Linux GitHub-Hosted Runner.
runs-on: ubuntu-22.04
# Defines what step should be passed for successful run
steps:
# Checkout to the selected branch
- name: Checkout
uses: actions/checkout@v3
# Download and install flutter packages
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
# Define which stable flutter version should be used
flutter-version: "3.23.0"
channel: "stable"
# Enables cache for flutter packages
# Speed up the process
cache: true
# Get Flutter project dependencies
- name: Update linux
run: |
sudo apt-get update -y
sudo apt-get install clang cmake git ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev
- name: Get dependencies
run: flutter pub get
- name: get flutter_distributor
run: dart pub global activate flutter_distributor
- name: Build release
run: flutter_distributor release --name=release --jobs=release-linux-deb
8 changes: 8 additions & 0 deletions distribute_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
output: dist/
releases:
- name: release
jobs:
- name: release-linux-deb
package:
platform: linux
target: deb
31 changes: 31 additions & 0 deletions linux/packaging/deb/make_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
display_name: Espanso GUI
package_name: espanso_gui

maintainer:
name: Jacob Ljungström
email: [email protected]

priority: optional

section: x11

dependencies:

essential: false

icon: linux/assets/apidash.png

postuninstall_scripts:
- echo "Sorry to see you go."

keywords:
- API
- API Client

generic_name: API Client

categories:
- Development
- Utility

startup_notify: true

0 comments on commit befb892

Please sign in to comment.