Skip to content

Commit

Permalink
Merge pull request #138 from learningequality/simple_version
Browse files Browse the repository at this point in the history
Simplify the asset naming to not include the mac installer version.
  • Loading branch information
rtibbles authored Jul 3, 2024
2 parents 7c9809f + 1d93430 commit 11e84df
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ pyinstaller: clean
python3 -OO -m PyInstaller kolibri.spec

build-dmg: needs-version
python3 -m dmgbuild -s build_config/dmgbuild_settings.py "Kolibri ${KOLIBRI_VERSION}-${APP_VERSION}" dist/kolibri-${KOLIBRI_VERSION}-${APP_VERSION}.dmg
python3 -m dmgbuild -s build_config/dmgbuild_settings.py "Kolibri ${KOLIBRI_VERSION}" dist/kolibri-${KOLIBRI_VERSION}.dmg

compile-mo:
find src/kolibri_app/locales -name LC_MESSAGES -exec msgfmt {}/wxapp.po -o {}/wxapp.mo \;
Expand All @@ -76,7 +76,7 @@ codesign-windows:
$(MAKE) guard-WIN_CODESIGN_PFX
$(MAKE) guard-WIN_CODESIGN_PWD
$(MAKE) guard-WIN_CODESIGN_CERT
C:\Program Files (x86)\Windows Kits\8.1\bin\x64\signtool.exe sign /f ${WIN_CODESIGN_PFX} /p ${WIN_CODESIGN_PWD} /ac ${WIN_CODESIGN_CERT} /tr http://timestamp.ssl.trustwave.com /td SHA256 /fd SHA256 dist/kolibri-${KOLIBRI_VERSION}-${APP_VERSION}.exe
C:\Program Files (x86)\Windows Kits\8.1\bin\x64\signtool.exe sign /f ${WIN_CODESIGN_PFX} /p ${WIN_CODESIGN_PWD} /ac ${WIN_CODESIGN_CERT} /tr http://timestamp.ssl.trustwave.com /td SHA256 /fd SHA256 dist/kolibri-${KOLIBRI_VERSION}.exe

.PHONY: codesign-mac-app
codesign-mac-app:
Expand All @@ -100,7 +100,7 @@ codesign-mac-app:
.PHONY: codesign-dmg
codesign-dmg: needs-version
$(MAKE) guard-MAC_CODESIGN_IDENTITY
xattr -cr dist/kolibri-${KOLIBRI_VERSION}-${APP_VERSION}.dmg
xattr -cr dist/kolibri-${KOLIBRI_VERSION}.dmg
codesign \
--sign "Developer ID Application: $(MAC_CODESIGN_IDENTITY)" \
--verbose=3 \
Expand All @@ -110,14 +110,14 @@ codesign-dmg: needs-version
--strict \
--entitlements build_config/entitlements.plist \
-o runtime \
dist/kolibri-${KOLIBRI_VERSION}-${APP_VERSION}.dmg
dist/kolibri-${KOLIBRI_VERSION}.dmg

.PHONY: notarize-dmg
notarize-dmg: needs-version
$(MAKE) guard-MAC_NOTARIZE_USERNAME
$(MAKE) guard-MAC_NOTARIZE_PASSWORD
$(MAKE) guard-MAC_NOTARIZE_TEAM_ID
./notarize-dmg.sh "./dist/kolibri-${KOLIBRI_VERSION}-${APP_VERSION}.dmg"
./notarize-dmg.sh "./dist/kolibri-${KOLIBRI_VERSION}.dmg"


run-dev:
Expand Down
8 changes: 2 additions & 6 deletions kolibri.spec
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@ sys.path = [os.path.abspath('kolibrisrc')] + sys.path
import kolibri
kolibri_version = kolibri.__version__


import kolibri_app
app_version = kolibri_app.__version__

name = "Kolibri-{}-{}".format(kolibri_version, app_version)
name = "Kolibri-{}".format(kolibri_version)

locale_datas = [
(mo_file, os.path.sep.join(os.path.dirname(mo_file).split(os.path.sep)[1:]))
Expand Down Expand Up @@ -136,7 +132,7 @@ if sys.platform == 'darwin':
'NSExceptionAllowsInsecureHTTPLoads': True
}
},
"CFBundleVersion": app_version,
"CFBundleVersion": kolibri_version,
},
}
)

0 comments on commit 11e84df

Please sign in to comment.