parent
dfc8337342
commit
1c22784064
9 changed files with 30 additions and 32 deletions
apps/update-sources/src
|
@ -19,9 +19,9 @@ const updatePackageJson = async(workspaceDir: string, updates: object) => {
|
|||
const updateDeps = (deps: string) => {
|
||||
Object.keys(currentPackageJson[deps]).forEach(async(dep) => {
|
||||
if (dep === 'astal') {
|
||||
const latestCommit = JSON.parse(spawnSync('curl',
|
||||
['-s', 'https://api.github.com/repos/Aylur/astal/commits/main'],
|
||||
{ shell: true }).stdout.toString()).sha;
|
||||
const latestCommit = JSON.parse(spawnSync(
|
||||
['curl', '-s', 'https://api.github.com/repos/Aylur/astal/commits/main'].join(' '), [], { shell: true },
|
||||
).stdout.toString()).sha;
|
||||
|
||||
currentPackageJson[deps][dep] = `https://gitpkg.vercel.app/Aylur/astal/lang/gjs/src?${latestCommit}`;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue