Build the package without root permissions.

This commit is contained in:
Robin Davies
2023-05-01 23:12:44 -04:00
parent a04bcabe00
commit dfca8f3374
7 changed files with 14 additions and 9 deletions
+4 -3
View File
@@ -72,9 +72,10 @@ install(CODE
]] ]]
) )
install( # Should be done by install.sh instead of here so that we can build the package without root permissions.
CODE "execute_process(COMMAND ${CMAKE_INSTALL_PREFIX}/bin/pipedalconfig --install)" # install(
) # CODE "execute_process(COMMAND ${CMAKE_INSTALL_PREFIX}/bin/pipedalconfig --install)"
# )
set(CPACK_GENERATOR "DEB") set(CPACK_GENERATOR "DEB")
+5 -5
View File
@@ -13,14 +13,14 @@ available through the Code plugins store) has configured itself, build commands
If you are not using Visual Studio Code, you can configure, build and install PiPedal using CMake build tools. For your convenience, If you are not using Visual Studio Code, you can configure, build and install PiPedal using CMake build tools. For your convenience,
the following shell scripts have been provided in the root of the project. the following shell scripts have been provided in the root of the project.
./init # Configure the CMake build (first time, or if you ./init.sh # Configure the CMake build for the first time, or if you
# have changed one of the CMakeList.txt files) # have changed one of the CMakeList.txt files. (release build)
./mk # Build all targets. ./mk.sh # Build all targets (release build)
sudo ./install # Deploy all targets sudo ./install.sh # Deploy all targets
sudo ./makePackage # Build a .deb file for distribution. sudo ./makePackage.sh # Build a .deb file for distribution.
If you are using a development environment other than Visual Studio Code, it should be fairly straightforward to figure out how If you are using a development environment other than Visual Studio Code, it should be fairly straightforward to figure out how
to incorporate the PiPedal build procedure into your IDE workflow by using the contents of the build shell scripts as a model. to incorporate the PiPedal build procedure into your IDE workflow by using the contents of the build shell scripts as a model.
View File
-1
View File
@@ -1 +0,0 @@
cmake --install build --prefix /usr --config Release -v
Executable
+5
View File
@@ -0,0 +1,5 @@
#!/usr/bin/bash
# copy files.
cmake --install build --prefix /usr --config Release -v
# Done as an install action by the debian package.
sudo /usr/bin/pipedalconfig --install
View File
View File