Skip to content

Commit

Permalink
Create archives for packages (#13)
Browse files Browse the repository at this point in the history
* Create archives for packages

Attempt to preserve execute permissions for mac os
Allow public download for artifacts

* Modified the install and usage steps

To cover archive download formats
  • Loading branch information
alza-bitz authored Jun 27, 2019
1 parent 841a956 commit 81a6c2c
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 15 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,14 @@ None

## Install

Download the Basic Edition from the [releases](https://github.com/digital-dj-tools/dj-data-converter/releases) page. To download the Pro Edition, please [contact me](mailto:[email protected]) for pricing.
Download the Basic Edition from the [releases](https://github.com/digital-dj-tools/dj-data-converter/releases) page as a zip or tar.gz archive, and then extract the archive into a directory.

To download the Pro Edition, please [contact me](mailto:[email protected]) for pricing.

## Usage

### Windows
Open a command prompt and navigate to the directory where the app was downloaded:
Open a command prompt and change to the directory where the archive was extracted:
```
cd <download-dir>
```
Expand All @@ -79,7 +81,7 @@ A converted `rekordbox.xml` file will be created in the current directory.
If the conversion fails due to an error, an `error-report.edn` file will be created (also in the current directory).

### Mac
Open a terminal and navigate to the directory where the app was downloaded:
Open a terminal and change to the directory where the archive was extracted:
```
cd <download-dir>
```
Expand Down
41 changes: 29 additions & 12 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,34 +21,47 @@ jobs:
- script: |
clojure -A:dev:compile-cljs
npm run build
zip -j pkg/dj-data-converter-win.zip pkg/dj-data-converter-win.exe
chmod +x pkg/dj-data-converter-macos
tar -czvf pkg/dj-data-converter-macos.tar.gz -C pkg dj-data-converter-macos
displayName: Package
- task: PublishPipelineArtifact@0
- task: CopyFiles@2
inputs:
sourceFolder: pkg
contents: '**'
targetFolder: $(Build.ArtifactStagingDirectory)
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)
artifactName: dj-data-converter
targetPath: pkg
publishLocation: Container
- job: Test_Windows
dependsOn: Build
pool:
vmImage: win1803
steps:
- task: DownloadPipelineArtifact@0
- task: DownloadBuildArtifacts@0
inputs:
buildType: current
downloadType: single
artifactName: dj-data-converter
targetPath: $(System.DefaultWorkingDirectory)\pkg
- script: pkg\dj-data-converter-win.exe -h
downloadPath: $(System.DefaultWorkingDirectory)
- script: dj-data-converter\dj-data-converter-win.exe -h
displayName: Smoke Test
- job: Test_Mac
dependsOn: Build
pool:
vmImage: macOS-10.13
steps:
- task: DownloadPipelineArtifact@0
- task: DownloadBuildArtifacts@0
inputs:
buildType: current
downloadType: single
artifactName: dj-data-converter
targetPath: $(System.DefaultWorkingDirectory)/pkg
downloadPath: $(System.DefaultWorkingDirectory)
- script: |
chmod +x pkg/dj-data-converter-macos
pkg/dj-data-converter-macos -h
chmod +x dj-data-converter/dj-data-converter-macos
dj-data-converter/dj-data-converter-macos -h
displayName: Smoke Test
- job: Release
dependsOn:
Expand All @@ -59,10 +72,12 @@ jobs:
pool:
vmImage: ubuntu-16.04
steps:
- task: DownloadPipelineArtifact@0
- task: DownloadBuildArtifacts@0
inputs:
buildType: current
downloadType: single
artifactName: dj-data-converter
targetPath: $(System.DefaultWorkingDirectory)/pkg
downloadPath: $(System.DefaultWorkingDirectory)
- task: GithubRelease@0
inputs:
gitHubConnection: digital-dj-tools-bot
Expand All @@ -72,6 +87,8 @@ jobs:
tagSource: manual
tag: $(Build.SourceBranchName)
title: $(Build.SourceBranchName)
assets: pkg/*
assets: |
dj-data-converter/*.zip
dj-data-converter/*.tar.gz
isDraft: true
addChangeLog: false

0 comments on commit 81a6c2c

Please sign in to comment.