Skip to content

Commit

Permalink
snapcraft packaging (#1241)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nelson-numerical-software authored Aug 29, 2024
1 parent e60c97b commit 15d54e6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions modules/gui/src/cpp/QtTerminal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ QtTerminal::getLine(const std::wstring& prompt)
return L"\n";
}
eval->commandQueue.clear();
CallbackQueue::getInstance()->clear();
Nelson::CallbackQueue::getInstance()->clear();

bool wasInterruptedByAction = false;

Expand All @@ -275,7 +275,7 @@ QtTerminal::getLine(const std::wstring& prompt)
break;
}

if (!eval->commandQueue.isEmpty() || !CallbackQueue::getInstance()->isEmpty()) {
if (!eval->commandQueue.isEmpty() || !Nelson::CallbackQueue::getInstance()->isEmpty()) {
wasInterruptedByAction = true;
break;
}
Expand Down
4 changes: 2 additions & 2 deletions modules/terminal/src/cpp/WindowsConsole.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ WindowsConsole::getCharacter(bool& bIsAction)
void* veval = NelsonConfiguration::getInstance()->getMainEvaluator();
Nelson::Evaluator* eval = (Nelson::Evaluator*)veval;
eval->commandQueue.clear();
CallbackQueue::getInstance()->clear();
Nelson::CallbackQueue::getInstance()->clear();
while (TRUE) {
::WaitForSingleObject(Win32InputStream, 30);
DWORD nbEventsAvailable = 0;
Expand All @@ -457,7 +457,7 @@ WindowsConsole::getCharacter(bool& bIsAction)
bInterruptGetChar = true;
}
}
if (!eval->commandQueue.isEmpty() || !CallbackQueue::getInstance()->isEmpty()
if (!eval->commandQueue.isEmpty() || !Nelson::CallbackQueue::getInstance()->isEmpty()
|| bInterruptGetChar) {
bIsAction = true;
bInterruptGetChar = false;
Expand Down
4 changes: 2 additions & 2 deletions snap/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ sudo snapcraft --destructive-mode --verbose
# Test locally

```
sudo snap install nelson_1.6.0.0_amd64.snap --dangerous
sudo snap install nelson_1.7.0.0_amd64.snap --dangerous
```

Debug:
Expand All @@ -27,7 +27,7 @@ snap run --shell nelson.nelson
# Push

```
snapcraft upload nelson_1.6.0.0_amd64.snap
snapcraft upload nelson_1.7.0.0_amd64.snap
```

# Connection
Expand Down
2 changes: 1 addition & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ parts:
DESTDIR=$CRAFT_PART_INSTALL cmake --build . -- install
craftctl set grade=stable
craftctl set version=1.6.0.0
craftctl set version=1.7.0.0
rm -rf $CRAFT_PART_INSTALL/usr/share/perl5/XML/
rm -rf $CRAFT_PART_INSTALL/usr/share/texmf
Expand Down

0 comments on commit 15d54e6

Please sign in to comment.