Skip to content

Commit

Permalink
remove workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
m1ga committed Oct 1, 2024
1 parent f25ebd0 commit 8d4214f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v1
with:
node-version: '18.x'
node-version: '16.x'
- name: Install dependencies
run: npm ci
- name: Lint
Expand All @@ -28,7 +28,7 @@ jobs:
strategy:
fail-fast: false
matrix:
nodeVersion: [ '18.x' ]
nodeVersion: [ '16.x' ]
os: [ macos-latest ]
tiSDK: [ latest ]
steps:
Expand All @@ -42,8 +42,9 @@ jobs:
run: |
npm ci
npm i titanium -g
ti sdk install ${{ matrix.tiSDK }}
ti sdk install ${{ matrix.tiSDK }} -d
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run tests
run: npm test

2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: '18'
node-version: '16'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
Expand Down
7 changes: 6 additions & 1 deletion Alloy/commands/db/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,16 @@ module.exports = async function(args, program) {
switch (command) {
case 'get':
tiapp.init();
console.log('Downloading _alloy_ database to: ' + tiapp.getBundleId() + '.db');
var adbPath = 'adb';
if (os.platform() === 'darwin') {
adbPath = '~/Library/Android/sdk/platform-tools/adb';
var testPath = path.join(adbPath);
if (!fs.existsSync(testPath)) {
console.error('adb not found at ' + adbPath);
return;
}
}
console.log('Downloading _alloy_ database to: ' + tiapp.getBundleId() + '.db');
execCommand(adbPath + ' shell "run-as ' + tiapp.getBundleId() + ' cat /data/data/' + tiapp.getBundleId() + '/databases/_alloy_" > ' + tiapp.getBundleId() + '.db');
break;
}
Expand Down

0 comments on commit 8d4214f

Please sign in to comment.