mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 16:19:37 +00:00
feat: update snap packaging paths and improve asset configuration in Cargo.toml
This commit is contained in:
8
.github/workflows/release.yml
vendored
8
.github/workflows/release.yml
vendored
@@ -205,7 +205,8 @@ jobs:
|
|||||||
if: matrix.package_type == 'snap'
|
if: matrix.package_type == 'snap'
|
||||||
run: |
|
run: |
|
||||||
cargo build --release
|
cargo build --release
|
||||||
mkdir -p dist && cp target/release/dcr dist/
|
mkdir -p packaging/snap/dist
|
||||||
|
cp target/release/dcr packaging/snap/dist/
|
||||||
|
|
||||||
- name: Snapcraft Build Action
|
- name: Snapcraft Build Action
|
||||||
if: matrix.package_type == 'snap'
|
if: matrix.package_type == 'snap'
|
||||||
@@ -371,7 +372,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
usesh: true
|
usesh: true
|
||||||
run: |
|
run: |
|
||||||
pkg install -y rust perl gmake
|
export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
|
||||||
|
pkg install -y rust perl5 gmake
|
||||||
cargo build --release
|
cargo build --release
|
||||||
|
|
||||||
- name: Prepare FreeBSD Artifact
|
- name: Prepare FreeBSD Artifact
|
||||||
@@ -388,6 +390,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
usesh: true
|
usesh: true
|
||||||
run: |
|
run: |
|
||||||
|
export PATH="/usr/local/bin:$PATH"
|
||||||
pkg_add rust perl gmake
|
pkg_add rust perl gmake
|
||||||
cargo build --release
|
cargo build --release
|
||||||
|
|
||||||
@@ -405,6 +408,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
usesh: true
|
usesh: true
|
||||||
run: |
|
run: |
|
||||||
|
export PATH="/usr/pkg/bin:/usr/pkg/sbin:$PATH"
|
||||||
pkgin -y install rust perl gmake
|
pkgin -y install rust perl gmake
|
||||||
cargo build --release
|
cargo build --release
|
||||||
|
|
||||||
|
|||||||
@@ -29,8 +29,9 @@ description = """
|
|||||||
Cargo-like utility to manage C/C++ projects.
|
Cargo-like utility to manage C/C++ projects.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
[package.metadata.generate-rpm.files]
|
assets = [
|
||||||
"/usr/bin/dcr" = { source = "target/release/dcr", mode = "755" }
|
{ source = "target/release/dcr", dest = "/usr/bin/dcr", mode = "755" }
|
||||||
|
]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
glob = "0.3"
|
glob = "0.3"
|
||||||
|
|||||||
@@ -15,4 +15,4 @@ apps:
|
|||||||
parts:
|
parts:
|
||||||
dcr:
|
dcr:
|
||||||
plugin: dump
|
plugin: dump
|
||||||
source: ../../dist/
|
source: dist/
|
||||||
Reference in New Issue
Block a user