Add Jenkinsfile
All checks were successful
FeedbackD-Configuration/pipeline/head This commit looks good
All checks were successful
FeedbackD-Configuration/pipeline/head This commit looks good
This commit is contained in:
parent
f4a1b3264a
commit
0a99c6d815
@ -33,5 +33,15 @@ install(TARGETS feedbackd-configuration)
|
||||
|
||||
include(GNUInstallDirs)
|
||||
|
||||
install(FILES "data/com.thebrokenrail.FeedbackD-Configuration.desktop" DESTINATION "${CMAKE_INSTALL_FULL_DATAROOTDIR}/applications")
|
||||
install(FILES "data/com.thebrokenrail.FeedbackD-Configuration.png" DESTINATION "${CMAKE_INSTALL_FULL_DATAROOTDIR}/icons/hicolor/96x96/apps")
|
||||
install(FILES "data/com.thebrokenrail.FeedbackD-Configuration.desktop" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications")
|
||||
install(FILES "data/com.thebrokenrail.FeedbackD-Configuration.png" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/96x96/apps")
|
||||
|
||||
set(CPACK_PACKAGE_VENDOR "TheBrokenRail")
|
||||
|
||||
set(CPACK_PACKAGE_VERSION_MAJOR 1)
|
||||
set(CPACK_PACKAGE_VERSION_MINOR 0)
|
||||
set(CPACK_PACKAGE_VERSION_PATCH 0)
|
||||
|
||||
set(CPACK_GENERATOR "TGZ")
|
||||
|
||||
include(CPack)
|
3
Dockerfile
Normal file
3
Dockerfile
Normal file
@ -0,0 +1,3 @@
|
||||
FROM arm64v8/alpine:edge
|
||||
|
||||
RUN apk add --no-cache build-base clang cmake libhandy1-dev gtk+3.0-dev json-glib-dev
|
22
Jenkinsfile
vendored
Normal file
22
Jenkinsfile
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
pipeline {
|
||||
agent {
|
||||
dockerfile true
|
||||
}
|
||||
stages {
|
||||
stage('Prepare Build') {
|
||||
steps {
|
||||
sh 'mkdir build; cd build; cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILEr=clang++ ..'
|
||||
}
|
||||
}
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh 'cd build; make -j$(nproc) package'
|
||||
}
|
||||
post {
|
||||
success {
|
||||
archiveArtifacts artifacts: 'build/*.tar.gz', fingerprint: true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,2 +1,9 @@
|
||||
# FeedbackD Configuration
|
||||
A Simple Configuration Tool For [FeedbackD](https://source.puri.sm/Librem5/feedbackd)
|
||||
|
||||
# Installation
|
||||
1. Run:
|
||||
```sh
|
||||
sudo apk add gtk+3.0 libhandy1 gvfs json-glib
|
||||
```
|
||||
2. Download [Latest Build](TBD) And Extract To Desired Prefix
|
@ -57,11 +57,16 @@ static void on_edit(GtkWidget *button, struct event_location *data) {
|
||||
open_dialog(button, data, 0);
|
||||
}
|
||||
|
||||
// Remove Widget Handler
|
||||
static void remove_widget(GtkWidget *widget, __attribute__((unused)) void *data) {
|
||||
gtk_widget_destroy(widget);
|
||||
}
|
||||
|
||||
// Load Profile Into List
|
||||
static void load_profile(GtkListBox *list) {
|
||||
char *name = profile_list_to_name(list);
|
||||
|
||||
gtk_container_foreach(GTK_CONTAINER(list), (GtkCallback) gtk_widget_destroy, NULL);
|
||||
gtk_container_foreach(GTK_CONTAINER(list), remove_widget, NULL);
|
||||
|
||||
JsonArray *profile = name_to_profile(name);
|
||||
if (profile != NULL && list != NULL) {
|
||||
|
Reference in New Issue
Block a user