mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-22 17:51:29 +03:00
review fixes
This commit is contained in:
parent
c0eb83831e
commit
83818e4ae2
@ -121,6 +121,11 @@ install(DIRECTORY "../build/linux/helper" DESTINATION "${BUILD_BUNDLE_DIR}" USE_
|
||||
# Copy Linux support files
|
||||
install(DIRECTORY "../resources/linux/linux_support" DESTINATION "${BUILD_BUNDLE_DIR}" USE_SOURCE_PERMISSIONS)
|
||||
install(FILES "../resources/linux/README.adoc" DESTINATION "${BUILD_BUNDLE_DIR}")
|
||||
|
||||
install(FILES "../assets/graphics/app-icon.png"
|
||||
DESTINATION "${BUILD_BUNDLE_DIR}/linux_support"
|
||||
RENAME "com.yubico.yubioath.png")
|
||||
|
||||
install(FILES "../resources/linux/desktop_integration.sh"
|
||||
DESTINATION "${BUILD_BUNDLE_DIR}"
|
||||
PERMISSIONS OWNER_EXECUTE OWNER_READ OWNER_WRITE)
|
@ -16,16 +16,14 @@
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
VERSION="6.0.0"
|
||||
PRODUCT_NAME="Yubico Authenticator $VERSION"
|
||||
|
||||
DESKTOP_FILENAME="com.yubico.authenticator.desktop"
|
||||
DESKTOP_FILE="${HOME}/.local/share/applications/${DESKTOP_FILENAME}"
|
||||
|
||||
EXEC_PATH=$(pwd)
|
||||
EXEC_DIRNAME=$(dirname "$0")
|
||||
EXEC_PATH=$(cd "$EXEC_DIRNAME" && pwd)
|
||||
|
||||
help() {
|
||||
echo "Integrate Yubico Authenticator 6.0 with common desktop environments."
|
||||
echo "Integrate Yubico Authenticator with common desktop environments."
|
||||
echo
|
||||
echo "Usage: -i | --install -- install desktop file"
|
||||
echo " -u | --uninstall -- uninstall desktop file"
|
||||
@ -33,7 +31,9 @@ help() {
|
||||
}
|
||||
|
||||
install() {
|
||||
cat "./linux_support/${DESKTOP_FILENAME}" | sed -e "s|@EXEC_PATH|${EXEC_PATH}|g" >"${DESKTOP_FILE}"
|
||||
sed -e "s|@EXEC_PATH|${EXEC_PATH}|g" \
|
||||
<"${EXEC_PATH}/linux_support/${DESKTOP_FILENAME}" \
|
||||
>"${DESKTOP_FILE}"
|
||||
echo "Created file: ${DESKTOP_FILE}"
|
||||
}
|
||||
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 6.5 KiB |
Loading…
Reference in New Issue
Block a user