Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
darrell-roberts committed Jan 2, 2025
1 parent 3b00635 commit 342d8aa
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 10 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
sudo add-apt-repository universe
sudo apt install libfuse2t64
- name: Build bundle
- name: Build app image
run: |
export PATH=$HOME/.local/bin:$PATH
make linux-app-image
Expand All @@ -93,7 +93,8 @@ jobs:
uses: softprops/action-gh-release@v1
with:
files: |
MineSweeper-x86_64.AppImage
*.AppImage
target/debian/*.deb
*.flatpak
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

PLATFORM := $(shell uname)

all: build
Expand Down Expand Up @@ -58,7 +57,7 @@ linux-app-image: clean-dist build

# Copy contents into AppDir
cp target/release/minesweeper-iced dist/AppDir/usr/bin
cp assets/minesweeper.desktop dist/AppDir/usr/share/applications
cp assets/io.github.darrellroberts.minesweeper.desktop dist/AppDir/usr/share/applications
cp -r assets/icons dist/AppDir/usr/share

# Create app image
Expand All @@ -73,7 +72,7 @@ install-local-linux: build
mkdir -p ~/.local/share/icons
mkdir -p ~/.local/bin
cp target/release/minesweeper-iced ~/.local/bin
cp assets/minesweeper.desktop ~/.local/share/applications
cp assets/io.github.darrellroberts.minesweeper.desktop ~/.local/share/applications
cp -r assets/icons ~/.local/share/icons

install:
Expand Down
26 changes: 21 additions & 5 deletions minesweeper-iced/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "minesweeper-iced"
version = "0.1.0"
version = "0.1.4"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand All @@ -17,8 +17,24 @@ extended-description = """MineSweeper"""
section = "games"
priority = "optional"
assets = [
["target/release/minesweeper-iced", "usr/bin/", "755"],
["../assets/minesweeper.desktop", "usr/share/applications/", "644"],
["../assets/icons/hicolor/32x32/apps/minesweeper.png", "usr/share/icons/hicolor/32x32/apps/", "644"],
["../assets/icons/hicolor/128x128/apps/minesweeper.png", "usr/share/icons/hicolor/128x128/apps/", "644"],
[
"target/release/minesweeper-iced",
"usr/bin/",
"755",
],
[
"../assets/io.github.darrellroberts.minesweeper.desktop",
"usr/share/applications/",
"644",
],
[
"../assets/icons/hicolor/32x32/apps/minesweeper.png",
"usr/share/icons/hicolor/32x32/apps/",
"644",
],
[
"../assets/icons/hicolor/128x128/apps/minesweeper.png",
"usr/share/icons/hicolor/128x128/apps/",
"644",
],
]

0 comments on commit 342d8aa

Please sign in to comment.