Skip to content

Commit

Permalink
Merge pull request #122 from PaulCombal/dev
Browse files Browse the repository at this point in the history
Fix build (#121)
  • Loading branch information
PaulCombal authored Jan 24, 2022
2 parents 3e8d088 + d928423 commit be64ba6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: Build CI

on:
push:
branches: [master]
branches: [master, fix-*, feat-*]
tags: [v*]
pull_request:
types: [opened]
Expand All @@ -25,5 +25,6 @@ jobs:
- run: sudo apt-get install -y libgtkmm-3.0-dev libcurl4-gnutls-dev libyajl-dev valgrind
- uses: actions/checkout@v2
- run: make
- run: sudo make install
- run: make clean
- run: make dev
- run: which samrewritten
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,15 @@ clean:

.PHONY: install
install: bin/launch.sh bin/samrewritten bin/libsteam_api.so
# TODO: use install for all of these?
mkdir -p ${DESTDIR}${PREFIX}/${LIBDIR}/SamRewritten/{bin,glade,assets}
mkdir -p ${DESTDIR}${PREFIX}/share/icons/hicolor/{64x64,256x256}/apps
mkdir -p ${DESTDIR}${PREFIX}/${LIBDIR}/SamRewritten/bin
mkdir -p ${DESTDIR}${PREFIX}/${LIBDIR}/SamRewritten/glade
mkdir -p ${DESTDIR}${PREFIX}/${LIBDIR}/SamRewritten/assets
mkdir -p ${DESTDIR}${PREFIX}/share/icons/hicolor/64x64/apps
mkdir -p ${DESTDIR}${PREFIX}/share/icons/hicolor/256x256/apps
mkdir -p ${DESTDIR}${PREFIX}/share/applications
mkdir -p ${DESTDIR}${PREFIX}/bin
cp $^ ${DESTDIR}${PREFIX}/${LIBDIR}/SamRewritten/bin/
ln -s ${DESTDIR}${PREFIX}/${LIBDIR}/SamRewritten/bin/launch.sh ${DESTDIR}${PREFIX}/bin/samrewritten
ln -s ${PREFIX}/${LIBDIR}/SamRewritten/bin/launch.sh ${DESTDIR}${PREFIX}/bin/samrewritten
cp glade/main_window.glade ${DESTDIR}${PREFIX}/${LIBDIR}/SamRewritten/glade/main_window.glade
cp assets/icon_64.png ${DESTDIR}${PREFIX}/share/icons/hicolor/64x64/apps/samrewritten.png
cp assets/icon_256.png ${DESTDIR}${PREFIX}/share/icons/hicolor/256x256/apps/samrewritten.png
Expand Down

0 comments on commit be64ba6

Please sign in to comment.