-
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #156 from varp/master
Improved Brew search algorithm and OneUpdater
- Loading branch information
Showing
9 changed files
with
3,327 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,46 @@ | ||
.PHONY: dist clean | ||
.PHONY: dist clean updateInfoPlist copyIcons buildWorkflow linkSourceFoldersToWorkflow | ||
|
||
distDir=./dist | ||
|
||
|
||
dist: | @composer @copy | ||
dist: | composer copySources copyIcons | ||
clean: | ||
rm -rf $(distDir)/* | ||
|
||
@composer: | ||
|
||
composer: | ||
rm -rf vendor | ||
composer install -v -o --no-dev | ||
|
||
@copy: | ||
copySources: | ||
$(shell [ ! -d "$(distDir)" ] && mkdir -p "$(distDir)") | ||
cp -frv bin dist/ | ||
cp -frv src dist/ | ||
cp -fv composer.* dist/ | ||
cp -frv icon-cache dist/ | ||
cp -frv vendor dist/ | ||
cp -frv bin $(distDir) | ||
cp -frv src $(distDir) | ||
cp -fv composer.* $(distDir) | ||
cp -frv icon-cache $(distDir) | ||
cp -frv vendor $(distDir) | ||
|
||
updateInfoPlist: | ||
-[[ "${ALFRED_PKGMAN_WORKFLOW_DIR}" == "" ]] && { echo "ALFRED_PKGMAN_WORKFLOW_DIR is not set! Aborting!"; exit 1; } | ||
cp -fv "${ALFRED_PKGMAN_WORKFLOW_DIR}"/info.plist . | ||
|
||
copyIcons: | ||
-[[ "${ALFRED_PKGMAN_WORKFLOW_DIR}" == "" ]] && { echo "ALFRED_PKGMAN_WORKFLOW_DIR is not set! Aborting!"; exit 1; } | ||
find "${ALFRED_PKGMAN_WORKFLOW_DIR}" -type f -name "*.png" -depth 1 -exec cp -fv {} $(distDir) \; | ||
|
||
buildWorkflow: | dist | ||
mkdir -p $(distDir)/"Package Managers.alfredworkflow" | ||
find $(distDir) -type d ! -name "Package Managers.alfredworkflow" -depth 1 -exec cp -rvf {} $(distDir)/"Package Managers.alfredworkflow" \; | ||
find $(distDir) -type f ! -name "Package Managers.alfredworkflow" -depth 1 -exec cp -vf {} $(distDir)/"Package Managers.alfredworkflow" \; | ||
cp -vf info.plist $(distDir)/"Package Managers.alfredworkflow" | ||
|
||
linkSourceFoldersToWorkflow: | ||
-[[ "${ALFRED_PKGMAN_WORKFLOW_DIR}" == "" ]] && { echo "ALFRED_PKGMAN_WORKFLOW_DIR is not set! Aborting!"; exit 1; } | ||
|
||
-[ -d "${ALFRED_PKGMAN_WORKFLOW_DIR}/bin" ] && mv -v "${ALFRED_PKGMAN_WORKFLOW_DIR}/bin" "${ALFRED_PKGMAN_WORKFLOW_DIR}/bin.bak" | ||
ln -vsfF $(PWD)/bin "${ALFRED_PKGMAN_WORKFLOW_DIR}" | ||
|
||
-[ -d "${ALFRED_PKGMAN_WORKFLOW_DIR}/src" ] && mv -v "${ALFRED_PKGMAN_WORKFLOW_DIR}/src" "${ALFRED_PKGMAN_WORKFLOW_DIR}/src.bak" | ||
ln -vsfF $(PWD)/src "${ALFRED_PKGMAN_WORKFLOW_DIR}" | ||
|
||
-[ -d "${ALFRED_PKGMAN_WORKFLOW_DIR}/vendor" ] && mv -v "${ALFRED_PKGMAN_WORKFLOW_DIR}/vendor" "${ALFRED_PKGMAN_WORKFLOW_DIR}/vendor.bak" | ||
ln -vsfF $(PWD)/vendor "${ALFRED_PKGMAN_WORKFLOW_DIR}" |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.