Build the package without root permissions.
This commit is contained in:
+4
-3
@@ -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")
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
Executable
+5
@@ -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
|
||||||
Reference in New Issue
Block a user