diff --git a/pkg/deb/builder.sh b/pkg/deb/builder.sh index e2cb8c7..64f5378 100755 --- a/pkg/deb/builder.sh +++ b/pkg/deb/builder.sh @@ -19,6 +19,7 @@ pkg_dir="${sources_dir}/pkg/deb" mkdir -p ${sources_dir} cp -R ${base_dir}/* ${sources_dir}/ +sed -i "s|FIM_VERSION|${version}|g" ${sources_dir}/pkg/fim.1 # Generating directory structure to build the .deb package cd ${build_dir} && tar -czf ${pkg_name}.orig.tar.gz "${pkg_name}" diff --git a/pkg/fim.1 b/pkg/fim.1 index 7adc2ca..d9f387c 100644 --- a/pkg/fim.1 +++ b/pkg/fim.1 @@ -19,7 +19,7 @@ .\" * .\" ************************************************************************** .\" -.TH fim 1 "01 Jun 2022" "FIM 0.5.0" "FIM Manual" +.TH fim 1 "01 Jun 2022" "FIM FIM_VERSION" "FIM Manual" .SH NAME .B FIM @@ -62,7 +62,7 @@ The events are stored in /var/lib/fim/events.json .SH COPYRIGHT .PP Copyright 2021 Achiefs. All rights reserved -https://achiefs.github.io/fim/ +https://achiefs.com/ .SH CREDITS .PP diff --git a/pkg/msi/builder.ps1 b/pkg/msi/builder.ps1 index cb8df1f..3f77d71 100644 --- a/pkg/msi/builder.ps1 +++ b/pkg/msi/builder.ps1 @@ -1,5 +1,7 @@ $version = (gc ..\..\Cargo.toml | findstr "version" | select -First 1).split(" ")[2].trim("`"", " ") +(Get-Content .\fim.wxs) -replace 'FIM_VERSION', $version | Set-Content -NoNewLine fim.wxs + cd ..\..\ cargo build --release cd pkg\msi diff --git a/pkg/msi/fim.wxs b/pkg/msi/fim.wxs index a28e9bb..1059ce9 100644 --- a/pkg/msi/fim.wxs +++ b/pkg/msi/fim.wxs @@ -2,7 +2,7 @@ + Language='1033' Codepage='1252' Version='FIM_VERSION'>