Merge pull request #2223 from danquirk/debianPostInstall
Telemetry notification on installation of debian package
This commit is contained in:
commit
57bf8c6b35
3 changed files with 15 additions and 0 deletions
3
packaging/debian/postinst
Executable file
3
packaging/debian/postinst
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env sh
|
||||
echo "This software may collect information about you and your use of the software, and send that to Microsoft."
|
||||
echo "Please visit http://aka.ms/dotnet-cli-eula for more information."
|
|
@ -158,6 +158,7 @@ create_empty_debian_layout(){
|
|||
mkdir "$PACKAGE_LAYOUT_DIR/package_root"
|
||||
mkdir "$PACKAGE_LAYOUT_DIR/samples"
|
||||
mkdir "$PACKAGE_LAYOUT_DIR/docs"
|
||||
mkdir "$PACKAGE_LAYOUT_DIR/debian"
|
||||
}
|
||||
|
||||
copy_files_to_debian_layout(){
|
||||
|
@ -175,6 +176,9 @@ copy_files_to_debian_layout(){
|
|||
# Append Version to all manpage files
|
||||
for manpage in "$PACKAGE_LAYOUT_DIR/docs/"*.1; do mv "$manpage" "${manpage%.1}"; done
|
||||
for manpage in "$PACKAGE_LAYOUT_DIR/docs/"*; do mv "$manpage" "${manpage}-${DOTNET_CLI_VERSION}.1"; done
|
||||
|
||||
# Copy postinstall
|
||||
cp "$PACKAGING_ROOT/postinst" "$PACKAGE_LAYOUT_DIR/debian/postinst"
|
||||
}
|
||||
|
||||
create_debian_package(){
|
||||
|
|
|
@ -152,6 +152,7 @@ package_all(){
|
|||
package_absolute_placement
|
||||
package_samples
|
||||
package_docs
|
||||
package_install_scripts
|
||||
}
|
||||
|
||||
generate_all(){
|
||||
|
@ -216,6 +217,13 @@ package_docs(){
|
|||
fi
|
||||
}
|
||||
|
||||
package_install_scripts(){
|
||||
# copy scripts for the package's control section like preinst, postint, etc
|
||||
if [[ -d "$INPUT_DIR/debian" ]]; then
|
||||
cp -a "$INPUT_DIR/debian/." $DEBIAN_DIR
|
||||
fi
|
||||
}
|
||||
|
||||
## Generation Functions ##
|
||||
generate_config_templates(){
|
||||
python ${SCRIPT_DIR}/scripts/config_template_generator.py $CONFIG $SCRIPT_DIR/templates/debian $DEBIAN_DIR $PACKAGE_NAME $PACKAGE_VERSION
|
||||
|
|
Loading…
Reference in a new issue