@@ -34,48 +34,29 @@ jobs:
3434 sudo apt-get update && sudo apt upgrade -y
3535 sudo apt-get install build-essential g++-11 libwayland-dev gettext libgtk-3-dev pkg-config libdconf-dev libglib2.0-dev libgtkmm-3.0-dev libarchive-tools -y
3636
37- - name : Clean
38- run : make distclean
39-
4037 - name : Compile
4138 run : make DEBUG=0 GUI_APP=0 CXX=x86_64-linux-gnu-g++-11
4239
43- - name : Make Release
44- run : make usr-dist DEBUG=0 && mv ./customfetch-*.tar.gz ./customfetch.tar.gz
40+ - name : Install to ./usr
41+ run : mkdir -p ./usr && make install DESTDIR=. PREFIX=/usr
4542
46- - name : Upload to github artifacts
47- uses : actions/upload-artifact@v4
48- with :
49- name : customfetch-linux
50- path : ./customfetch.tar.gz
43+ - name : Compile (GUI app)
44+ run : make clean && make DEBUG=0 GUI_APP=1 CXX=x86_64-linux-gnu-g++-11
5145
52- build-linux-tar-gui :
53- runs-on : ubuntu-22.04
54- permissions :
55- contents : read
56-
57- steps :
58- - uses : actions/checkout@v4
59-
60- - name : Install Packages
46+ - name : Install the GUI components
6147 run : |
62- sudo apt-get update && sudo apt upgrade -y
63- sudo apt-get install build-essential g++-11 libwayland-dev gettext libgtk-3-dev pkg-config libdconf-dev libglib2.0-dev libgtkmm-3.0-dev libarchive-tools -y
64-
65- - name : Clean
66- run : make clean
67-
68- - name : Compile
69- run : make DEBUG=0 GUI_APP=1 CXX=x86_64-linux-gnu-g++-11
48+ install ./build/release/customfetch-gui -Dm 755 -v ./usr/bin/
49+ mkdir -p ./usr/share/applications
50+ cp -f customfetch.desktop ./usr/share/applications/
7051
7152 - name : Make Release
72- run : make usr-dist DEBUG=0 GUI_APP=1 && mv ./customfetch-* .tar.gz ./customfetch-gui.tar.gz
53+ run : tar -zcf ./customfetch.tar.gz ./usr/
7354
7455 - name : Upload to github artifacts
7556 uses : actions/upload-artifact@v4
7657 with :
77- name : customfetch-gui- linux
78- path : ./customfetch-gui .tar.gz
58+ name : customfetch-linux
59+ path : ./customfetch.tar.gz
7960
8061 build-deb :
8162 runs-on : ubuntu-22.04
8465
8566 steps :
8667 - uses : actions/checkout@v4
87-
68+
8869 - name : create tmp directory
8970 run : mkdir /tmp/customfetch-2.0.0-beta1.orig
9071
@@ -121,7 +102,7 @@ jobs:
121102
122103 steps :
123104 - uses : actions/checkout@v4
124-
105+
125106 - name : create tmp directory
126107 run : mkdir /tmp/customfetch-2.0.0-beta1.orig
127108
@@ -161,14 +142,11 @@ jobs:
161142 - uses : actions/checkout@v4
162143
163144 - name : Install the packages
164- run : HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install --overwrite fastfetch neofetch pkg-config tree llvm@19
145+ run : HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install --overwrite fastfetch neofetch pkg-config gtkmm3 tree llvm@19
165146
166147 - name : uname -a && clang++ --version
167148 run : uname -a && echo "\n" && $(brew --prefix llvm@19)/bin/clang++ --version
168149
169- - name : Clean
170- run : make distclean
171-
172150 - name : Compile and install
173151 run : |
174152 export CXX=$(brew --prefix llvm@19)/bin/clang++
@@ -177,53 +155,31 @@ jobs:
177155 make
178156 make install
179157 cd ..
180- tar -zcf ./customfetch.tar.gz usr/
181-
182- - name : Upload to github artifacts
183- uses : actions/upload-artifact@v4
184- with :
185- if-no-files-found : error
186- name : customfetch-macos
187- path : ./customfetch.tar.gz
188158
189- build-macos-tar-gui :
190- runs-on : macos-latest
191- permissions :
192- contents : read
193-
194- steps :
195- - uses : actions/checkout@v4
196-
197- - name : Install the packages
198- run : HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install --overwrite fastfetch neofetch tree pkg-config gtkmm3 llvm@19
199-
200- - name : uname -a && clang++ --version
201- run : uname -a && echo "\n" && $(brew --prefix llvm@19)/bin/clang++ --version
202-
203- - name : Clean
204- run : make distclean
205-
206- - name : Compile and install
159+ - name : Compile (GUI app)
207160 run : |
208161 export CXX=$(brew --prefix llvm@19)/bin/clang++
209162 export PKG_CONFIG_PATH="$(brew --prefix)/lib/pkgconfig:$(brew --prefix)/opt/gtkmm3/lib/pkgconfig:$(brew --prefix)/opt/gtk+3/lib/pkgconfig"
210- mkdir build && cd build
163+ rm -rf build && mkdir build && cd build
211164 cmake .. -DCMAKE_BUILD_TYPE=Debug -DGUI_APP=1 -DCMAKE_INSTALL_PREFIX=../usr
212165 make
213- make install
214- cd ..
215- tar -zcf ./customfetch-gui.tar.gz usr/
166+ mv -f customfetch-gui ../usr/bin/
167+ mkdir -p ../usr/share/applications
168+ mv -f ../customfetch.desktop ../usr/share/applications
169+
170+ - name : Make release
171+ run : tar -zcf ./customfetch.tar.gz usr/
216172
217173 - name : Upload to github artifacts
218174 uses : actions/upload-artifact@v4
219175 with :
220176 if-no-files-found : error
221- name : customfetch-macos-gui
222- path : ./customfetch-gui .tar.gz
177+ name : customfetch-macos
178+ path : ./customfetch.tar.gz
223179
224180 release :
225181 name : Create GitHub Release
226- needs : [build-linux-tar, build-linux-tar-gui, build- macos-tar, build-macos-tar-gui , build-deb-gui, build-deb, get-version]
182+ needs : [build-linux-tar, build-macos-tar, build-deb-gui, build-deb, get-version]
227183 runs-on : ubuntu-latest
228184 permissions :
229185 contents : write
@@ -262,15 +218,6 @@ jobs:
262218 asset_name : customfetch-linux-${{ needs.get-version.outputs.version }}.tar.gz
263219 asset_content_type : application/tar+gz
264220
265- - uses : actions/upload-release-asset@v1
266- env :
267- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
268- with :
269- upload_url : ${{ needs.release.outputs.release-url }}
270- asset_path : customfetch-linux-gui/customfetch-gui.tar.gz
271- asset_name : customfetch-linux-gui-${{ needs.get-version.outputs.version }}.tar.gz
272- asset_content_type : application/tar+gz
273-
274221 - uses : actions/upload-release-asset@v1
275222 env :
276223 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -280,15 +227,6 @@ jobs:
280227 asset_name : customfetch-macos-${{ needs.get-version.outputs.version }}.tar.gz
281228 asset_content_type : application/tar+gz
282229
283- - uses : actions/upload-release-asset@v1
284- env :
285- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
286- with :
287- upload_url : ${{ needs.release.outputs.release-url }}
288- asset_path : customfetch-macos-gui/customfetch-gui.tar.gz
289- asset_name : customfetch-maacos-gui-${{ needs.get-version.outputs.version }}.tar.gz
290- asset_content_type : application/tar+gz
291-
292230 - uses : actions/upload-release-asset@v1
293231 env :
294232 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments