mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-25 08:38:39 +02:00
Add `locale/en.po` file. Add English to `locale/LINGUAS` list. Partially duplicate `msgid`s to `msgstr`s in English locale enable eventual key `msgid` changes Replace former project name with Tenacity in English locale. Replace former project website with Tenacity compatible usages in English locale. Modify `AboutDialog.h` by renaming variables. Modify `AboutDialog.cpp` by replacing usage of pre-fork name in Strings. Modify AddBuildInfoRow methods to be static in About dialog. Make License text const in About dialog. Make pre-fork credits different in About dialog. Begin adding Tenacity specific credits Macros starting with `__` are reserved, so I removed the `__` on the About Dialog guard macro. Remove `AboutDialog::` from usage of `Role` in `AboutDialog.h` Refactor overly long generator method into separate methods in `AboutDialog.(h|cpp)` Begin adding Tenacity developer information Cleanup layout of `AboutDialog.h` and `AboutDialog.cpp` Add `safedelete` macro to compliment odd `safenew` macro Add `enum` to `ShuttleGui.cpp` to make it more clear what `Prop` method is doing. Remove a ton of pointless and/or redunant `#ifdef` usage Remove pointless singleton in AboutDialog Make AboutDialog modal on MacOS Fix reference type use of `auto` in `AudacityApp` b/c it makes unintentional copy. Update XPM and PNG images using Tenacity assets Update ICO images using Tenacity assets. Fix Windows resource script that improperly used `winuser.h` import. Add `*.aps` to gitignore to prevent IDE RC pre-load file from being committed. Add default values for pre-processor constants in `tenacity.rc`. Make changes needed for `Tenacity.exe` binary Add 8x8 PNG to Windows ICO files Replace project name in various CMake and CPack file. Replace project name in various directory structures. Replace project name in various OS-specific build files. Replace project name in various documentation files. Update the PO and POT files using the script. Fix places where a `.desktop` file was used on Linux. Replace title of project windows. Make splash screen click through to `tenacityaudio.org`. Remove ® from `AboutDialog.cpp` Modify copyright message in `AboutDialog.cpp` Signed-off-by: Emily Mabrey <emilymabrey93@gmail.com>
68 lines
2.9 KiB
CMake
68 lines
2.9 KiB
CMake
set(CPACK_PACKAGE_VERSION_MAJOR "${AUDACITY_VERSION}") # X
|
|
set(CPACK_PACKAGE_VERSION_MINOR "${AUDACITY_RELEASE}") # Y
|
|
set(CPACK_PACKAGE_VERSION_PATCH "${AUDACITY_REVISION}") # Z
|
|
set(CPACK_PACKAGE_VENDOR "Tenacity")
|
|
set(CPACK_PACKAGE_HOMEPAGE_URL "https://tenacityaudio.org")
|
|
|
|
# X.Y.Z-alpha-20210615
|
|
set(CPACK_PACKAGE_VERSION "${AUDACITY_VERSION}.${AUDACITY_RELEASE}.${AUDACITY_REVISION}${AUDACITY_SUFFIX}")
|
|
|
|
if(NOT AUDACITY_BUILD_LEVEL EQUAL 2)
|
|
# X.Y.Z-alpha-20210615+a1b2c3d
|
|
set(CPACK_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION}+${GIT_COMMIT_SHORT}")
|
|
endif()
|
|
|
|
# Custom variables use CPACK_AUDACITY_ prefix. CPACK_ to expose to CPack,
|
|
# AUDACITY_ to show it is custom and avoid conflicts with other projects.
|
|
set(CPACK_AUDACITY_SOURCE_DIR "${PROJECT_SOURCE_DIR}")
|
|
|
|
if(CMAKE_SYSTEM_NAME MATCHES "Windows")
|
|
set(os "win")
|
|
elseif(CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
|
set(os "macos")
|
|
elseif(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
|
set(os "linux")
|
|
endif()
|
|
|
|
# audacity-linux-X.Y.Z-alpha-20210615
|
|
set(CPACK_PACKAGE_FILE_NAME "tenacity-${os}-${CPACK_PACKAGE_VERSION}")
|
|
set(zsync_name "tenacity-${os}-*") # '*' is wildcard (here it means any version)
|
|
|
|
if(DEFINED AUDACITY_ARCH_LABEL)
|
|
# audacity-linux-X.Y.Z-alpha-20210615-x86_64
|
|
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_FILE_NAME}-${AUDACITY_ARCH_LABEL}")
|
|
set(zsync_name "${zsync_name}-${AUDACITY_ARCH_LABEL}")
|
|
set(CPACK_AUDACITY_ARCH_LABEL "${AUDACITY_ARCH_LABEL}")
|
|
endif()
|
|
set(CPACK_PACKAGE_DIRECTORY "${CMAKE_BINARY_DIR}/package")
|
|
|
|
set(CPACK_GENERATOR "ZIP")
|
|
|
|
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
|
set(CPACK_GENERATOR "External")
|
|
set(CPACK_EXTERNAL_ENABLE_STAGING TRUE)
|
|
set(CPACK_EXTERNAL_PACKAGE_SCRIPT "${PROJECT_SOURCE_DIR}/linux/package_appimage.cmake")
|
|
if(AUDACITY_BUILD_LEVEL EQUAL 2)
|
|
# Enable updates. See https://github.com/AppImage/AppImageSpec/blob/master/draft.md#update-information
|
|
set(CPACK_AUDACITY_APPIMAGE_UPDATE_INFO "gh-releases-zsync|tenacityteam|tenacity|latest|${zsync_name}.AppImage.zsync")
|
|
endif()
|
|
elseif( CMAKE_SYSTEM_NAME STREQUAL "Darwin" )
|
|
set( CPACK_GENERATOR DragNDrop )
|
|
|
|
set( CPACK_DMG_BACKGROUND_IMAGE "${CMAKE_SOURCE_DIR}/mac/Resources/Audacity-DMG-background.png")
|
|
set( CPACK_DMG_DS_STORE_SETUP_SCRIPT "${CMAKE_SOURCE_DIR}/scripts/build/macOS/DMGSetup.scpt")
|
|
|
|
if( ${_OPT}perform_codesign )
|
|
set( CPACK_APPLE_CODESIGN_IDENTITY ${APPLE_CODESIGN_IDENTITY} )
|
|
set( CPACK_APPLE_NOTARIZATION_USER_NAME ${APPLE_NOTARIZATION_USER_NAME} )
|
|
set( CPACK_APPLE_NOTARIZATION_PASSWORD ${APPLE_NOTARIZATION_PASSWORD} )
|
|
set( CPACK_APPLE_SIGN_SCRIPTS "${CMAKE_SOURCE_DIR}/scripts/build/macOS" )
|
|
set( CPACK_PERFORM_NOTARIZATION ${${_OPT}perform_notarization} )
|
|
|
|
# CPACK_POST_BUILD_SCRIPTS was added in 3.19, but we only need it on macOS
|
|
SET( CPACK_POST_BUILD_SCRIPTS "${CMAKE_SOURCE_DIR}/scripts/build/macOS/DMGSign.cmake" )
|
|
endif()
|
|
endif()
|
|
|
|
include(CPack) # do this last
|