mirror of
https://github.com/VSCodium/vscodium.git
synced 2026-04-25 04:10:15 +10:00
fix: build differently so arm64 can be generated (#946)
This commit is contained in:
13
stores/snapcraft/build.sh
Executable file
13
stores/snapcraft/build.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
CALLER_DIR=$( pwd )
|
||||
|
||||
cd "$( dirname "${BASH_SOURCE[0]}" )"
|
||||
|
||||
sg lxd -c 'snapcraft --use-lxd'
|
||||
|
||||
ls -la
|
||||
|
||||
cd "${CALLER_DIR}"
|
||||
@@ -21,6 +21,8 @@ else
|
||||
GH_VERSION=$(jq -r 'sort_by(.tag_name)|last.tag_name' gh_latest.json)
|
||||
echo "GH version: ${GH_VERSION}"
|
||||
|
||||
rm -f snap_latest.json gh_latest.json
|
||||
|
||||
if [[ "${SNAP_VERSION}" == "${GH_VERSION}" ]]; then
|
||||
export SHOULD_DEPLOY="no"
|
||||
else
|
||||
|
||||
@@ -2,8 +2,14 @@
|
||||
|
||||
set -e
|
||||
|
||||
CALLER_DIR=$( pwd )
|
||||
|
||||
cd "$( dirname "${BASH_SOURCE[0]}" )"
|
||||
|
||||
echo "$SNAP_STORE_LOGIN" | snapcraft login --with -
|
||||
|
||||
snapcraft upload --release=stable *.snap
|
||||
|
||||
snapcraft logout
|
||||
|
||||
cd "${CALLER_DIR}"
|
||||
|
||||
@@ -73,7 +73,7 @@ parts:
|
||||
after:
|
||||
- codium
|
||||
plugin: dump
|
||||
source: snap/local
|
||||
source: local
|
||||
|
||||
apps:
|
||||
codium:
|
||||
Reference in New Issue
Block a user