Commit dc6e0585 authored by 神楽坂玲奈's avatar 神楽坂玲奈

Merge remote-tracking branch 'origin/v3-refactor3' into v3-refactor3

parents 41497011 9ed7bca0
...@@ -27,6 +27,7 @@ windows_bin: ...@@ -27,6 +27,7 @@ windows_bin:
- wget -O - https://cdn01.moecube.com/ygopro-build-materials/mycard-mat/mycard-mat-windows.tar.gz | tar zxf - - wget -O - https://cdn01.moecube.com/ygopro-build-materials/mycard-mat/mycard-mat-windows.tar.gz | tar zxf -
windows: windows:
# image: stefanscherer/node-windows:12-build-tools
stage: build stage: build
dependencies: dependencies:
- windows_bin - windows_bin
...@@ -53,11 +54,11 @@ linux: ...@@ -53,11 +54,11 @@ linux:
- npm ci - npm ci
- npm run build - npm run build
- npm run dist - npm run dist
- ls - ls dist
artifacts: artifacts:
paths: paths:
- dist/mycard-* - dist/latest-linux.yml
- dist/mycard_* - dist/*.AppImage
macOS: macOS:
stage: build stage: build
tags: tags:
...@@ -69,16 +70,18 @@ macOS: ...@@ -69,16 +70,18 @@ macOS:
APPLE_ID_PASSWORD: $MACOS_NOTARIZE_PASSWORD APPLE_ID_PASSWORD: $MACOS_NOTARIZE_PASSWORD
TEAM_SHORT_NAME: $MACOS_ASC_PROVIDER TEAM_SHORT_NAME: $MACOS_ASC_PROVIDER
script: script:
- '[[ -z "$CI_COMMIT_TAG" ]] && export TRAVIS_BRANCH="_no_notarize"'
- npm ci - npm ci
- npm run build - npm run build
- npm run dist - npm run dist
- ls
artifacts: artifacts:
paths: paths:
- dist/mycard-* - dist/latest-mac.yml
- dist/mycard_* - dist/*.dmg
- dist/*.blockmap
- dist/*.zip
upload_to_minio: deploy:
stage: deploy stage: deploy
dependencies: dependencies:
- macOS - macOS
...@@ -86,7 +89,9 @@ upload_to_minio: ...@@ -86,7 +89,9 @@ upload_to_minio:
- linux - linux
tags: tags:
- linux - linux
image: bitnami/aws-cli image:
name: amazon/aws-cli
entrypoint: [""]
script: script:
- aws s3 --endpoint=https://minio.mycard.moe:9000 sync dist/ s3://mycard/mycard-ci-test - aws s3 --endpoint=https://minio.mycard.moe:9000 sync dist/ s3://mycard/mycard-ci-test
# only: # only:
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
"watch": "ng build --localize --base-href .. --watch --configuration development", "watch": "ng build --localize --base-href .. --watch --configuration development",
"pack": "electron-builder --dir", "pack": "electron-builder --dir",
"dist": "electron-builder", "dist": "electron-builder",
"dist:mac": "electron-builder --universal",
"i18n:extract": "ng extract-i18n", "i18n:extract": "ng extract-i18n",
"i18n:upload": "tx push --source", "i18n:upload": "tx push --source",
"i18n:translate": "open https://www.transifex.com/mycard/mycard/translate/#en_US/messages-xlf?q=translated%3Ano", "i18n:translate": "open https://www.transifex.com/mycard/mycard/translate/#en_US/messages-xlf?q=translated%3Ano",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment