Comments (3)
@tjk panic: not supported by windows
from go-update.
Naive approach:
if err = update.Apply(bin, update.Options{}); err != nil {
panic(err)
}
if err = syscall.Exec(binPath, os.Args, os.Environ()); err != nil {
panic(err)
}
Edit: This should work -- I just didn't have first arg path set correctly when I first posted this.
from go-update.
i want so
from go-update.
Related Issues (20)
- Attack possible by downgrading to earlier exploitable binary version by MITM HOT 5
- Quick Start Documentation HOT 1
- Tag release HOT 2
- can i get complete example program to understand self update usage? HOT 3
- Are you providing support for linux too? HOT 1
- Release osext as an independent package HOT 1
- Bug in Example? HOT 2
- Make switch of files more robust
- x HOT 1
- Wrong permissions HOT 1
- McAfee virus scanner cleans the new exe after update HOT 1
- example handler HOT 1
- progress prompt
- Check directory permissions and throw an informative error when they are wrong
- Will this work inside a Macos dmg application? HOT 1
- Support go modules
- THIS PROJECT APPEARS TO BE UNMAINTAINED (details inside) HOT 2
- Equinox is shutting down on September 30th, 2021 HOT 1
- Self-update in parallel processes does not work properly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-update.