Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

display version numbers in builds #1128

Merged
merged 15 commits into from
Aug 17, 2018
Merged

display version numbers in builds #1128

merged 15 commits into from
Aug 17, 2018

Conversation

jbibla
Copy link
Collaborator

@jbibla jbibla commented Aug 14, 2018

Closes #1043

@jbibla jbibla changed the title display version numbers in builds HELP: display version numbers in builds Aug 14, 2018
README.md Outdated
```bash
open builds/Voyager/Cosmos_Voyager-v0.9.4-Linux/Cosmos\ Voyager.app
open builds/Voyager/Cosmos_Voyager-v0.9.4-macOS/Cosmos\ Voyager.app
open builds/Voyager/Cosmos_Voyager-v0.9.4-Windows/Cosmos\ Voyager.app
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is probably not correct for either Window nor Linux ;)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because the file is not called .app on neither Windows nor Linux

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ahhh my mistake.

@jbibla
Copy link
Collaborator Author

jbibla commented Aug 14, 2018

@cosmos/cosmos-ui could use some help with the tests here. not sure how to properly mock electron.remote.app.getVersion() which i think is the issue.

@faboweb
Copy link
Collaborator

faboweb commented Aug 15, 2018

Checkout https://github.com/cosmos/voyager/blob/develop/test/unit/helpers/electron_mock.js where we already mock several other properties of electron.

@codecov
Copy link

codecov bot commented Aug 15, 2018

Codecov Report

Merging #1128 into develop will increase coverage by <.01%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##           develop    #1128      +/-   ##
===========================================
+ Coverage    95.89%   95.89%   +<.01%     
===========================================
  Files           79       79              
  Lines         1584     1585       +1     
  Branches        74       74              
===========================================
+ Hits          1519     1520       +1     
  Misses          58       58              
  Partials         7        7
Impacted Files Coverage Δ
app/src/main/index.js 100% <ø> (ø) ⬆️
...src/renderer/components/common/PagePreferences.vue 100% <100%> (ø) ⬆️

@jbibla jbibla changed the title HELP: display version numbers in builds display version numbers in builds Aug 15, 2018
@jbibla jbibla removed the need help label Aug 15, 2018
Copy link
Collaborator

@faboweb faboweb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How to open isn't correct for Windows/Linux

README.md Outdated
Then open the Cosmos Voyager.app:

```bash
open builds/Voyager/Cosmos_Voyager-v0.9.4-Linux/Cosmos\ Voyager.app
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^^ the simple solution

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the documentation was out of date. i tried to update it - but i think it's unnecessary.

README.md Outdated
open builds/Cosmos-{platform}-x64/Cosmos.app
open builds/Voyager/Cosmos_Voyager-v0.9.4-Linux.tar.gz
open builds/Voyager/Cosmos_Voyager-v0.9.4-macOS.zip
open builds/Voyager/Cosmos_Voyager-v0.9.4-Windows.zip
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this tested?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure what you mean. if the user is in the correct directory it should open and unzip the files.

open builds/Cosmos-{platform}-x64/Cosmos.app doesn't work for any platform because we put builds in /Voyager now.

is there something i need to be looking out for that i'm not thinking of?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no open cmd on Windows/Linux ;)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a proposal, let me know what you think.

README.md Outdated
```

You can specify `--help` to see all options with explanations.

Run the app.
Unzip the app version for your OS:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unzip? untar? unpack? also should we include the command?

tar -zxvf yourfile.tar.gz

@@ -4,7 +4,7 @@ let testRoot = "./test/unit/tmp/test_root/"

function mockGenesis() {
process.env.COSMOS_NETWORK = "./networks/gaiaiaiaiaiaia/"
process.env.GAIA_VERSION = "1.2.3-asdf"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do they no longer follow this format?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jordan preprocesses it on the setter.

README.md Outdated
open builds/Cosmos-{platform}-x64/Cosmos.app
```
- Linux: `builds/Voyager/Cosmos_Voyager-v0.9.4-Linux.tar.gz`
- MacOS: `builds/Voyager/Cosmos_Voyager-v0.9.4-macOS.tar.gz`
Copy link
Collaborator Author

@jbibla jbibla Aug 16, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but i'm pretty sure this is a .zip @faboweb

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry my mistake

@jbibla jbibla dismissed faboweb’s stale review August 17, 2018 15:23

removed specifics in favour of more general explanation

@@ -101,21 +101,17 @@ First [Build Gaia](#build-gaia) and [Download the testnet configurations](#downl
Here's an example build command:

```bash
yarn run build --commit=HEAD --network=gaia-7001
yarn run build --commit=HEAD --network=gaia-7005
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we change it to 8000 ?

@@ -3,7 +3,7 @@
</template>

<script>
import { mepGetters } from "vuex"
import { mapGetters } from "vuex"
Copy link
Contributor

@fedekunze fedekunze Aug 17, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LOL great catch !

Copy link
Contributor

@fedekunze fedekunze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@fedekunze fedekunze merged commit 7d9fa8b into develop Aug 17, 2018
@fedekunze fedekunze deleted the jordan/1043-version branch August 17, 2018 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants