Skip to content

Commit ccf3d31

Browse files
committed
Release 2.0.0-alpha36
2 parents 8c778a7 + 2cb159c commit ccf3d31

File tree

8 files changed

+18
-18
lines changed

8 files changed

+18
-18
lines changed

.gitlab-ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ variables:
6767
image: ${CI_BUILD_IMAGE}
6868
tags: [ kepler ]
6969
before_script:
70-
- if [[ -n ${APP_VERSION} ]]; then git checkout ${APP_VERSION} ; fi
70+
- if [[ -n ${APP_VERSION} ]]; then git fetch origin ; git checkout ${APP_VERSION} ; fi
7171
# Get project dependencies
7272
- ls -artl "${BUILD_CACHE_DIR}"
7373
- ln -s "${BUILD_CACHE_DIR}/node_modules" node_modules
@@ -96,7 +96,7 @@ variables:
9696
image: ${CI_BUILD_ELECTRON_IMAGE}
9797
tags: [ kepler ]
9898
before_script:
99-
- if [[ -n ${APP_VERSION} ]]; then git checkout ${APP_VERSION} ; fi
99+
- if [[ -n ${APP_VERSION} ]]; then git fetch origin ; git checkout ${APP_VERSION} ; fi
100100
- npm install
101101
- npm run electron:install
102102
- npm version
@@ -105,7 +105,7 @@ variables:
105105
image: ${CI_BUILD_IMAGE}
106106
tags: [ kepler ]
107107
before_script:
108-
- if [[ -n ${APP_VERSION} ]]; then git checkout ${APP_VERSION} ; fi
108+
- if [[ -n ${APP_VERSION} ]]; then git fetch origin ; git checkout ${APP_VERSION} ; fi
109109
- ls -artl "${BUILD_CACHE_DIR}"
110110
- ln -s "${BUILD_CACHE_DIR}/node_modules" node_modules
111111
- npm install web-ext
@@ -356,7 +356,7 @@ gitlab-release:
356356
needs: [release]
357357
image: ${CI_BUILD_IMAGE}
358358
script:
359-
- if [[ -n ${APP_VERSION} ]]; then git checkout ${APP_VERSION} ; fi
359+
- if [[ -n ${APP_VERSION} ]]; then git fetch origin ; git checkout ${APP_VERSION} ; fi
360360
# Copy cached dependencies and build
361361
- ls -artl "${BUILD_CACHE_DIR}"
362362
- ln -s "${BUILD_CACHE_DIR}/node_modules" node_modules

android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ android {
1313
minSdkVersion rootProject.ext.minSdkVersion
1414
compileSdkVersion rootProject.ext.compileSdkVersion
1515
targetSdkVersion rootProject.ext.targetSdkVersion
16-
versionCode 02000035
17-
versionName "2.0.0-alpha35"
16+
versionCode 02000036
17+
versionName "2.0.0-alpha36"
1818
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1919
aaptOptions {
2020
// Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.

electron/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cesium2s",
3-
"version": "2.0.0-alpha35",
3+
"version": "2.0.0-alpha36",
44
"description": "Cesium², running on Duniter v2s (Substrate).",
55
"author": {
66
"name": "Benoit Lavenier",

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ INSTALL_DIR=${1:-$(pwd)/${PROJECT_NAME}}
1414
INSTALL_ENV=testing
1515

1616
latest_version() {
17-
echo "2.0.0-alpha35" #lastest
17+
echo "2.0.0-alpha36" #lastest
1818
}
1919

2020
api_release_url() {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cesium",
3-
"version": "2.0.0-alpha35",
3+
"version": "2.0.0-alpha36",
44
"description": "Manage G1 wallet",
55
"author": "Benoit Lavenier <[email protected]>",
66
"homepage": "https://cesium.app",

resources/webext/manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"manifest_version": 2,
33
"name": "cesium2s",
4-
"version": "2.0.0.35",
5-
"version_name": "2.0.0-alpha35",
4+
"version": "2.0.0.36",
5+
"version_name": "2.0.0-alpha36",
66
"short_name": "Cesium²",
77
"description": "Manage G1 wallet",
88
"author": "Benoit Lavenier <[email protected]>",

scripts/node/release.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,15 +128,16 @@ const { async } = require('rxjs');
128128

129129
async function assetsLinkCheckExists(tag, name) {
130130
utils.logMessage('I', LOG_PREFIX, `Check if asset link "${name}" exists for tag "${tag}"`);
131-
let res;
132131
try {
133-
res = await fetch(`${computeGitlabApiProjectUrl()}/releases/${tag}/assets/links`);
132+
const res = await fetch(`${computeGitlabApiProjectUrl()}/releases/${tag}/assets/links`);
133+
if (res.status === 404) return false;
134+
else if (res.status !== 200)
135+
throw new Error(`${res.status} ${res.statusText}`);
134136
const items = await res.json();
135137
const found = items.find((item) => item.name === name);
136138
if (!found || found.length === 0) return false;
137139
else return found.id;
138140
} catch(e) {
139-
if (res.status === 404) return false;
140141
utils.logMessage('E', LOG_PREFIX, e);
141142
process.exit(1);
142143
}
@@ -242,12 +243,11 @@ const { async } = require('rxjs');
242243

243244
async function releaseCheckExist(tagName) {
244245
utils.logMessage('I', LOG_PREFIX, `Check if release for tag "${tagName}" exits`);
245-
let res;
246246
try {
247-
res = await fetch(`${computeGitlabApiProjectUrl()}/releases/${tagName}`);
247+
const res = await fetch(`${computeGitlabApiProjectUrl()}/releases/${tagName}`);
248+
if (res.status !== 200) return false;
248249
return true;
249250
} catch(e) {
250-
if (res.status === 404) return false;
251251
utils.logMessage('E', LOG_PREFIX, e);
252252
process.exit(1);
253253
}

src/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"short_name": "Cesium",
33
"name": "Cesium2",
44
"manifest_version": 2,
5-
"version": "2.0.0-alpha35",
5+
"version": "2.0.0-alpha36",
66
"default_locale": "fr",
77
"description": "Cesium Wallet for Ğ1 libre currency",
88
"icons": [

0 commit comments

Comments
 (0)