Skip to content

Commit

Permalink
Update release.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Riey committed Jan 18, 2021
1 parent b699af4 commit 595da9e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 42 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,19 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set VER
run: export VER=$(grep '^version =' gtk3/Cargo.toml|head -n1|cut -d\" -f2)
- name: Update apt
run: sudo apt-get update -y
- name: Install packages
run: sudo apt-get install -y pkg-config libpango1.0-dev libcairo2-dev libgtk-3-dev libglib2.0 libxcb1
- name: Install cargo-deb
run: cargo install cargo-deb

- name: Generate package...
run: pkg/release.sh
- name: Archiving package...
run: 7z a build/kime.7z ./build/out/*
- name: Generate deb package...
run: pkg/release-deb.sh
- name: Archiving deb package...
run: 7z a build/kime-deb.7z ./build/deb/*

- name: Create draft release
id: create_release
Expand All @@ -48,7 +46,7 @@ jobs:
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: build/kime.7z
asset_name: kime-${{ github.ref }}.7z
asset_name: kime-${VER}.7z
asset_content_type: application/x-7z-compressed

- name: Upload deb package
Expand All @@ -57,7 +55,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: build/kime-deb.7z
asset_name: kime-dev-${{ github.ref }}.7z
asset_content_type: application/x-7z-compressed
asset_path: build/deb/kime_${VER}_amd64.deb
asset_name: kime_${VER}_amd64.deb
asset_content_type: application/x-xz

12 changes: 0 additions & 12 deletions engine/capi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,3 @@ kime-engine-core = { path = "../core" }
kime-engine-core = { path = "../core" }
serde_yaml = "0.8.15"

[package.metadata.deb]
name = "kime-engine"
maintainer = "Riey"
copyright = "2021, Riey <[email protected]>"
depends = ""
provides = "kime-engine"
conflicts = "kime-engine"

assets = [
["target/release/libkime_engine.so", "usr/lib", "755"],
["data/config.yaml", "etc/kime", "644"],
]
10 changes: 0 additions & 10 deletions gtk3/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,3 @@ pango-sys = "0.10.0"

kime-engine-cffi = { path = "../engine/cffi" }

[package.metadata.deb]
name = "kime-gtk3"
maintainer = "Riey"
copyright = "2021, Riey <[email protected]>"
depends = "gtk+3.0,libpango-1.0,libglib2.0,kime-engine"
provides = "kime-gtk3"
conflicts = "kime-gtk3"
assets = [
["target/release/libkime_gtk3.so", "usr/gtk-3.0/3.0.0/immodules", "755"],
]
2 changes: 1 addition & 1 deletion pkg/control.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ Homepage: https://github.com/Riey/kime
Section: utils
Priority: optional
Architecture: amd64
Depends: libpango1.0-dev libcairo2-dev libgtk-3-dev libglib2.0 libxcb1
Depends: libpango1.0-dev, libcairo2-dev, libgtk-3-dev, libglib2.0, libxcb1

11 changes: 0 additions & 11 deletions xim/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,3 @@ xim = { git = "https://github.com/Riey/xim-rs", default-features = false, featur

kime-engine-cffi = { path = "../engine/cffi" }

[package.metadata.deb]
name = "kime-xim"
maintainer = "Riey"
copyright = "2021, Riey <[email protected]>"
depends = "libxcb1,libcairo2,kime-engine"
provides = "kime-xim"
conflicts = "kime-xim"

assets = [
["target/release/kime-xim", "usr/bin", "755"],
]

0 comments on commit 595da9e

Please sign in to comment.