⚗️ Hid commiit hash and variant from footer
This commit is contained in:
2
build.js
2
build.js
@@ -36,7 +36,7 @@ try {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get the current version hash as the short hash from Git.
|
// Get the current version hash as the short hash from Git.
|
||||||
version.hash = runCommand("git", ["rev-parse --short HEAD"]);
|
version.hash = runCommand("git", ["rev-parse", "--short", "HEAD"]);
|
||||||
// Get the 'variant' name as the branch, if it's not master.
|
// Get the 'variant' name as the branch, if it's not master.
|
||||||
version.variant =
|
version.variant =
|
||||||
process.env.TRAVIS_BRANCH ||
|
process.env.TRAVIS_BRANCH ||
|
||||||
|
|||||||
@@ -138,18 +138,18 @@
|
|||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener"
|
rel="noopener"
|
||||||
>{{version.name}}</a>
|
>{{version.name}}</a>
|
||||||
<span v-if="version.hash">
|
<!-- <span v-if="version.hash">
|
||||||
-
|
-
|
||||||
<a
|
<a
|
||||||
v-bind:href="'https://github.com/liyasthomas/postwoman/commit/' + version.hash"
|
v-bind:href="'https://github.com/liyasthomas/postwoman/commit/' + version.hash"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener"
|
rel="noopener"
|
||||||
>{{version.hash}}</a>
|
>{{version.hash}}</a>
|
||||||
</span>
|
</span> -->
|
||||||
<span v-if="version.variant">({{version.variant}})</span>
|
<!-- <span v-if="version.variant">({{version.variant}})</span> -->
|
||||||
•
|
•
|
||||||
</span> by
|
</span>
|
||||||
<a href="https://liyasthomas.web.app" target="_blank" rel="noopener">Liyas Thomas 🦄</a> •
|
<a href="https://liyasthomas.web.app" target="_blank" rel="noopener">🦄</a> •
|
||||||
<a href="https://postwoman.launchaco.com" target="_blank" rel="noopener">Subscribe</a>
|
<a href="https://postwoman.launchaco.com" target="_blank" rel="noopener">Subscribe</a>
|
||||||
</p>
|
</p>
|
||||||
</footer>
|
</footer>
|
||||||
|
|||||||
Reference in New Issue
Block a user